MCPcopy Create free account
hub / github.com/antvis/AVA / profile

Method profile

src/interpreter/python/engine.ts:87–93  ·  view source on GitHub ↗
(schema: Schema, options: ProfileOptions = {}, signal?: AbortSignal)

Source from the content-addressed store, hash-verified

85 }
86
87 async profile(schema: Schema, options: ProfileOptions = {}, signal?: AbortSignal): Promise<Profile> {
88 if (!this.source) throw new Error('No data loaded. Please call source() first.');
89
90 const script = profileCode(parseProfileOptions(options, { metrics: DEFAULT_METRICS }), schema);
91 const tables = await this.metadata(script, signal);
92 return profileOutputSchema.parse({ models: tables });
93 }
94
95 async execute<T = Record<string, unknown>>(
96 code: string,

Callers

nothing calls this directly

Calls 3

metadataMethod · 0.95
profileCodeFunction · 0.90
parseProfileOptionsFunction · 0.90

Tested by

no test coverage detected