(profile string)
| 582 | } |
| 583 | |
| 584 | func cpuWeightForProfile(profile string) (int64, string, error) { |
| 585 | switch strings.ToLower(strings.TrimSpace(profile)) { |
| 586 | case "", CPUProfileThink, "idle": |
| 587 | return CPUWeightThink, CPUProfileThink, nil |
| 588 | case CPUProfileTool, "active": |
| 589 | return CPUWeightTool, CPUProfileTool, nil |
| 590 | default: |
| 591 | return 0, "", fmt.Errorf("unknown cpu profile %q", profile) |
| 592 | } |
| 593 | } |
| 594 | |
| 595 | func (s Service) runtimeName() string { |
| 596 | if s.Driver != nil { |
no outgoing calls
no test coverage detected