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

Method profile

src/interpreter/python/engine.ts:83–88  ·  view source on GitHub ↗
(schema: Schema, options: ProfileOptions = {})

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

metadataMethod · 0.95
profileCodeFunction · 0.90
parseProfileOptionsFunction · 0.90

Tested by

no test coverage detected