MCPcopy Index your code
hub / github.com/parca-dev/parca / fromString

Method fromString

ui/packages/shared/parser/src/index.ts:143–150  ·  view source on GitHub ↗
(profileType: string)

Source from the content-addressed store, hash-verified

141 }
142
143 static fromString(profileType: string): ProfileType {
144 const str = profileType.toString();
145 const parts = str.split(':');
146 if (parts.length !== 5 && parts.length !== 6) {
147 throw new Error('Invalid profile type: ' + str);
148 }
149 return new ProfileType(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5] === 'delta');
150 }
151
152 toString(): string {
153 if (

Callers 4

fromAstMethod · 0.80
parseMethod · 0.80
setProfileNameMethod · 0.80
constructorMethod · 0.80

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected