MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / GetProfile

Function GetProfile

benchmark/profiles.go:48–54  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

46}
47
48func GetProfile(name string) (VariantOverride, error) {
49 profile, ok := profiles[name]
50 if ok {
51 return cloneVariant(profile), nil
52 }
53 return VariantOverride{}, fmt.Errorf("unknown benchmark profile: %s. available=%s", name, strings.Join(AvailableProfiles(), ", "))
54}
55
56func cloneVariant(variant VariantOverride) VariantOverride {
57 cloned := variant

Callers 5

mainFunction · 0.92
mainFunction · 0.92
BuildBenchmarkReportFunction · 0.85

Calls 2

cloneVariantFunction · 0.85
AvailableProfilesFunction · 0.85