(zettel (meta (backward "00001004050000") (box-number "1") (created "00010101000000") (forward "00001004050000 00001004100000") (modified "20211122174951") (published "20211122174951") (role "manual") (syntax "zmk") (tags "#command #configuration #manual #zettelstore") (title "Command line flags for profiling the application")) (rights 4) (encoding "") (content "If you want to measure potential bottlenecks within the software Zettelstore,\nthere are two [[command line|00001004050000]] flags for enabling the measurement (also called __profiling__):\n\n; ''-cpuprofile FILE''\n: Enables CPU profiling.\n ''FILE'' must be the name of the file where the data is stored.\n; ''-memprofile FILE''\n: Enables memory profiling.\n ''FILE'' must be the name of the file where the data is stored.\n\nNormally, profiling will stop when you stop the software Zettelstore.\nThe given ''FILE'' can be used to analyze the data via the tool ``go tool pprof FILE``.\n\nPlease notice that ''-cpuprofile'' takes precedence over ''-memprofile''.\nYou cannot measure both.\n\nYou also can use the [[administrator console|00001004100000]] to begin and end profiling manually for a already running Zettelstore."))