feat: stuff

This commit is contained in:
2026-01-16 19:27:16 -05:00
parent d9639ecc2b
commit 8dc5d986fd
4 changed files with 10 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
// Package "performance" provides a tracker to observe CPU performance during
// Package "performance" provides a tracker to observer CPU performance during
// execution.
package plugins
@@ -19,10 +19,10 @@ type Performance struct {
}
// Create a performance tracker that outputs a profile to "file".
func NewPerformance(file string, r reducer.Reducer) *Performance {
func NewPerformance(file string, process reducer.Reducer) *Performance {
plugin := &Performance{File: file}
r.On(reducer.StartEvent, plugin.Start)
r.On(reducer.StopEvent, plugin.Stop)
process.On(reducer.StartEvent, plugin.Start)
process.On(reducer.StopEvent, plugin.Stop)
return plugin
}