((META (EMPTY-STRING title "Command line flags for profiling the application") (WORD role "manual") (TAG-SET tags ("#command" "#configuration" "#manual" "#zettelstore")) (WORD syntax "zmk") (ZID-SET backward ("00001004050000")) (NUMBER box-number "1") (STRING copyright "(c) 2020-present by Detlef Stern ") (TIMESTAMP created "20211122170506") (ZID-SET forward ("00001004050000" "00001004100000")) (WORD lang "en") (EMPTY-STRING license "EUPL-1.2-or-later") (TIMESTAMP modified "20211122174951") (TIMESTAMP published "20211122174951") (WORD visibility "public")) (BLOCK (PARA (TEXT "If you want to measure potential bottlenecks within the software Zettelstore,") (SOFT) (TEXT "there are two ") (LINK-ZETTEL () "00001004050000" (TEXT "command line")) (TEXT " flags for enabling the measurement (also called ") (FORMAT-EMPH () (TEXT "profiling")) (TEXT "):")) (DESCRIPTION ((LITERAL-INPUT () "-cpuprofile FILE")) (BLOCK (BLOCK (PARA (TEXT "Enables CPU profiling.") (SOFT) (LITERAL-INPUT () "FILE") (TEXT " must be the name of the file where the data is stored.")))) ((LITERAL-INPUT () "-memprofile FILE")) (BLOCK (BLOCK (PARA (TEXT "Enables memory profiling.") (SOFT) (LITERAL-INPUT () "FILE") (TEXT " must be the name of the file where the data is stored."))))) (PARA (TEXT "Normally, profiling will stop when you stop the software Zettelstore.") (SOFT) (TEXT "The given ") (LITERAL-INPUT () "FILE") (TEXT " can be used to analyze the data via the tool ") (LITERAL-CODE () "go tool pprof FILE") (TEXT ".")) (PARA (TEXT "Please notice that ") (LITERAL-INPUT () "-cpuprofile") (TEXT " takes precedence over ") (LITERAL-INPUT () "-memprofile") (TEXT ".") (SOFT) (TEXT "You cannot measure both.")) (PARA (TEXT "You also can use the ") (LINK-ZETTEL () "00001004100000" (TEXT "administrator console")) (TEXT " to begin and end profiling manually for a already running Zettelstore."))))