From 7555fe065ee3dfe209b05bfb3c848cd6e52d98d2 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 13 Aug 2014 22:31:56 +0200 Subject: [PATCH] Perfstats are not supported on Windows --- cmd/syncthing/main.go | 3 ++- cmd/syncthing/{perfstats.go => perfstats_unix.go} | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) rename cmd/syncthing/{perfstats.go => perfstats_unix.go} (98%) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 8f3b7606..df6706d5 100644 --- a/cmd/syncthing/main.go +++ b/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).` ) diff --git a/cmd/syncthing/perfstats.go b/cmd/syncthing/perfstats_unix.go similarity index 98% rename from cmd/syncthing/perfstats.go rename to cmd/syncthing/perfstats_unix.go index d1596b50..f8aa19ad 100644 --- a/cmd/syncthing/perfstats.go +++ b/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 (