# STPROFILER missing from Syncthing 2.0 documentation?

**URL:** https://forum.syncthing.net/t/stprofiler-missing-from-syncthing-2-0-documentation/25181
**Category:** Development
**Created:** [September 4, 2025, 6:56pm UTC](https://forum.syncthing.net/t/stprofiler-missing-from-syncthing-2-0-documentation/25181 "2025-09-04T18:56:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tomasz86](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@tomasz86](https://forum.syncthing.net/u/tomasz86)
#### Post date: [September 4, 2025, 6:56pm UTC](https://forum.syncthing.net/t/stprofiler-missing-from-syncthing-2-0-documentation/25181/1 "2025-09-04T18:56:00Z")

</div>

In the Docs, before Syncthing 2.0, there was an environment variable called `STPROFILER` (e.g. see [https://docs.syncthing.net/v1.30.0/dev/debugging](https://docs.syncthing.net/v1.30.0/dev/debugging)).

 ![image](https://forum-uploads.syncthingcdn.net/original/3X/0/4/0424a6575ffb5db9df9783daa2db317169a21914.png)

However, in the current version of the Docs, there is no mention of `STPROFILER` at all, even though the instructions themselves do still apply and work:

 ![image](https://forum-uploads.syncthingcdn.net/original/3X/7/f/7fbc8d38733601cedc9288df0f7852e629852874.png)

On the page, it is possible to grab a full goroutine stack dump. Is this no longer relevant or useful?

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [September 4, 2025, 6:58pm UTC](https://forum.syncthing.net/t/stprofiler-missing-from-syncthing-2-0-documentation/25181/2 "2025-09-04T18:58:33Z")

</div>

Probably removed by mistake.

---

<div class="post-metadata">

### Author: ![tomasz86](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@tomasz86](https://forum.syncthing.net/u/tomasz86)
#### Post date: [September 4, 2025, 7:06pm UTC](https://forum.syncthing.net/t/stprofiler-missing-from-syncthing-2-0-documentation/25181/3 "2025-09-04T19:06:13Z")

</div>

Hmm, the whole page looks kind of broken, e.g.

**v1.30**

 ![image](https://forum-uploads.syncthingcdn.net/original/3X/d/b/dbf9683231106f53929964154c11abe426535696.png)

vs

**v2.0**

 ![image](https://forum-uploads.syncthingcdn.net/original/3X/b/2/b2907c90781bcb6108451204c8ee13b720d2f1a3.png)

It seems that `STPROFILER` (together with a lot of other environment variables) was removed in [chore: updates for v2 changes (#901) · syncthing/docs@a86f6a1 · GitHub](https://github.com/syncthing/docs/commit/a86f6a1c2c6bf73e2817e3f045d292d9f26b840b).

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [September 4, 2025, 7:10pm UTC](https://forum.syncthing.net/t/stprofiler-missing-from-syncthing-2-0-documentation/25181/4 "2025-09-04T19:10:04Z")

</div>

Mostly because most of these are now on the command line flags, including STPROFILER in fact:

```plaintext
      --debug-gui-assets-dir=PATH Directory to load GUI assets from ($STGUIASSETS)
      --debug-perf-stats Write running performance statistics to perf-$pid.csv (Unix only) ($STPERFSTATS)
      --debug-profile-block Write block profiles to block-$pid-$timestamp.pprof every 20 seconds
                                               ($STBLOCKPROFILE)
      --debug-profile-cpu Write a CPU profile to cpu-$pid.pprof on exit ($STCPUPROFILE)
      --debug-profile-heap Write heap profiles to heap-$pid-$timestamp.pprof each time heap usage increases
                                               ($STHEAPPROFILE)
      --debug-profiler-listen=ADDR Network profiler listen address ($STPROFILER)

```

---

<div class="post-metadata">

### Author: ![tomasz86](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@tomasz86](https://forum.syncthing.net/u/tomasz86)
#### Post date: [September 4, 2025, 7:17pm UTC](https://forum.syncthing.net/t/stprofiler-missing-from-syncthing-2-0-documentation/25181/5 "2025-09-04T19:17:35Z")

</div>

Ah, now it’s clear. I think all those could be added to [https://docs.syncthing.net/users/syncthing.html](https://docs.syncthing.net/users/syncthing.html), right? At the moment, there seems to be no documentation available at all (and wrappers like the Android app only allow setting environment variables).

In the case of `STPROFILER` specifically, you still need to know the URL to access the debug page (which is different than the CPU and heap profiling URLs, i.e. there is no `/rest/` in it).

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [September 4, 2025, 7:18pm UTC](https://forum.syncthing.net/t/stprofiler-missing-from-syncthing-2-0-documentation/25181/6 "2025-09-04T19:18:54Z")

</div>

Sure
