Skip to content

Commit

Permalink
/go/performance/utils/sysbench_runner: enable cpu profiling on sysben…
Browse files Browse the repository at this point in the history
…ch runs for dolt
  • Loading branch information
coffeegoddd committed Feb 6, 2024
1 parent 31602f8 commit ac1f444
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/performance/utils/sysbench_runner/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ func (sc *ServerConfig) GetServerArgs() ([]string, error) {
if sc.Server == Dolt {
if sc.ServerProfile != "" {
if sc.ServerProfile == cpuProfile {
params = append(params, fmt.Sprintf("%s=%s", profileFlag, cpuProfile))
params = append(params, profileFlag, cpuProfile)
} else {
return nil, fmt.Errorf("unsupported server profile: %s", sc.ServerProfile)
}
if sc.ProfilePath != "" {
params = append(params, fmt.Sprintf("%s=%s", profilePathFlag, sc.ProfilePath))
params = append(params, profilePathFlag, sc.ProfilePath)
}
}
params = append(params, defaultDoltServerParams...)
Expand Down
2 changes: 2 additions & 0 deletions go/performance/utils/sysbench_runner/dolt.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ func BenchmarkDolt(ctx context.Context, config *Config, serverConfig *ServerConf

// launch the dolt server
gServer.Go(func() error {
server.Stdout = os.Stdout
server.Stderr = os.Stderr
return server.Run()
})

Expand Down

0 comments on commit ac1f444

Please sign in to comment.