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