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 <ds@zettelstore.de>
created: 20211122170506
forward: 00001004050000 00001004100000
lang: en
license: EUPL-1.2-or-later
modified: 20250627161347
published: 20250627161347
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*):



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 start and stop profiling manually for an already running Zettelstore.