mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 02:48:59 +00:00
wip
This commit is contained in:
parent
06f58812c3
commit
26eab5f5a6
@ -1213,6 +1213,14 @@ func (s *service) getSupportBundle(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Connection data as JSON
|
||||||
|
connStats := s.model.ConnectionStats()
|
||||||
|
if connStatsJSON, err := json.MarshalIndent(connStats, "", " "); err != nil {
|
||||||
|
l.Warnln("Support bundle: failed to serialize connection-stats.json.txt", err)
|
||||||
|
} else {
|
||||||
|
files = append(files, fileEntry{name: "connection-stats.json.txt", data: connStatsJSON})
|
||||||
|
}
|
||||||
|
|
||||||
// Heap and CPU Proofs as a pprof extension
|
// Heap and CPU Proofs as a pprof extension
|
||||||
var heapBuffer, cpuBuffer bytes.Buffer
|
var heapBuffer, cpuBuffer bytes.Buffer
|
||||||
filename := fmt.Sprintf("syncthing-heap-%s-%s-%s-%s.pprof", runtime.GOOS, runtime.GOARCH, build.Version, time.Now().Format("150405")) // hhmmss
|
filename := fmt.Sprintf("syncthing-heap-%s-%s-%s-%s.pprof", runtime.GOOS, runtime.GOARCH, build.Version, time.Now().Format("150405")) // hhmmss
|
||||||
|
Loading…
Reference in New Issue
Block a user