first commit
This commit is contained in:
12
transports/bifrost-http/handlers/devpprof_windows.go
Normal file
12
transports/bifrost-http/handlers/devpprof_windows.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build dev && windows
|
||||
|
||||
package handlers
|
||||
|
||||
import "time"
|
||||
|
||||
// getCPUSample returns a zeroed CPU sample on Windows
|
||||
// Windows does not support syscall.Getrusage
|
||||
func getCPUSample() cpuSample {
|
||||
return cpuSample{timestamp: time.Now()}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user