Browse Source

Perfstats are not supported on Windows

Jakob Borg 11 years ago
parent
commit
7555fe065e
2 changed files with 4 additions and 1 deletions
  1. 2 1
      cmd/syncthing/main.go
  2. 2 0
      cmd/syncthing/perfstats_unix.go

+ 2 - 1
cmd/syncthing/main.go

@@ -127,7 +127,8 @@ The following enviroment variables are interpreted by syncthing:
  STHEAPPROFILE Write heap profiles to heap-$pid-$timestamp.pprof each time
                heap usage increases.
 
- STPERFSTATS   Write running performance statistics to perf-$pid.csv.
+ STPERFSTATS   Write running performance statistics to perf-$pid.csv. Not
+               supported on Windows.
 
  STDEADLOCKTIMEOUT  Alter deadlock detection timeout (seconds; default 1200).`
 )

+ 2 - 0
cmd/syncthing/perfstats.go → cmd/syncthing/perfstats_unix.go

@@ -2,6 +2,8 @@
 // All rights reserved. Use of this source code is governed by an MIT-style
 // license that can be found in the LICENSE file.
 
+// +build !windows
+
 package main
 
 import (