(((meta (@ (content . "Command line flags for profiling the application") (name . "title"))) (meta (@ (content . "manual") (name . "role"))) (meta (@ (content . "#command #configuration #manual #zettelstore") (name . "tags"))) (meta (@ (content . "zmk") (name . "syntax"))) (meta (@ (content . "00001004050000") (name . "backward"))) (meta (@ (content . "1") (name . "box-number"))) (meta (@ (content . "(c) 2020-present by Detlef Stern ") (name . "copyright"))) (meta (@ (content . "20211122170506") (name . "created"))) (meta (@ (content . "00001004050000 00001004100000") (name . "forward"))) (meta (@ (content . "en") (name . "lang"))) (meta (@ (content . "EUPL-1.2-or-later") (name . "license"))) (meta (@ (content . "20211122174951") (name . "modified"))) (meta (@ (content . "20211122174951") (name . "published"))) (meta (@ (content . "public") (name . "visibility")))) (p "If you want to measure potential bottlenecks within the software Zettelstore," " " "there are two " (a (@ (href . "00001004050000")) "command line") " flags for enabling the measurement (also called " (em "profiling") "):") (dl (dt (kbd "-cpuprofile FILE")) (dd (p "Enables CPU profiling." " " (kbd "FILE") " must be the name of the file where the data is stored.")) (dt (kbd "-memprofile FILE")) (dd (p "Enables memory profiling." " " (kbd "FILE") " must be the name of the file where the data is stored."))) (p "Normally, profiling will stop when you stop the software Zettelstore." " " "The given " (kbd "FILE") " can be used to analyze the data via the tool " (code "go tool pprof FILE") ".") (p "Please notice that " (kbd "-cpuprofile") " takes precedence over " (kbd "-memprofile") "." " " "You cannot measure both.") (p "You also can use the " (a (@ (href . "00001004100000")) "administrator console") " to begin and end profiling manually for a already running Zettelstore."))