Skip to content

Commit ce07116

Browse files
committed
fix perf naming
1 parent 90a8450 commit ce07116

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/cubejs-schema-compiler/src/compiler/YamlCompiler.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class YamlCompiler {
181181
if (propertyPath[propertyPath.length - 1] === 'values') {
182182
if (typeof code === 'string') {
183183
if (code.match(PY_TEMPLATE_SYNTAX)) {
184-
const parsePythonAndTranspileToJsTimer184 = perfTracker.start('PythonParser->transpileToJs() call 184');
184+
const parsePythonAndTranspileToJsTimer184 = perfTracker.start('parsePythonAndTranspileToJs call 184');
185185
ast = this.parsePythonAndTranspileToJs(`f"${this.escapeDoubleQuotes(code)}"`, errorsReport);
186186
parsePythonAndTranspileToJsTimer184.end();
187187
} else {
@@ -198,7 +198,7 @@ export class YamlCompiler {
198198
}
199199
}
200200
if (ast === null) {
201-
const parsePythonAndTranspileToJsTimer201 = perfTracker.start('PythonParser->transpileToJs() call 201');
201+
const parsePythonAndTranspileToJsTimer201 = perfTracker.start('parsePythonAndTranspileToJs call 201');
202202
ast = this.parsePythonAndTranspileToJs(code, errorsReport);
203203
parsePythonAndTranspileToJsTimer201.end();
204204
}
@@ -211,7 +211,7 @@ export class YamlCompiler {
211211
}
212212

213213
if (propertyPath[propertyPath.length - 1] === 'extends') {
214-
const parsePythonAndTranspileToJsTimer214 = perfTracker.start('PythonParser->transpileToJs() call 214');
214+
const parsePythonAndTranspileToJsTimer214 = perfTracker.start('parsePythonAndTranspileToJs call 214');
215215
const ast = this.parsePythonAndTranspileToJs(obj, errorsReport);
216216
parsePythonAndTranspileToJsTimer214.end();
217217
return this.astIntoArrowFunction(ast, obj, cubeName, name => this.cubeDictionary.resolveCube(name));
@@ -222,7 +222,7 @@ export class YamlCompiler {
222222
code = `f"${this.escapeDoubleQuotes(obj)}"`;
223223
}
224224

225-
const parsePythonAndTranspileToJsTimer225 = perfTracker.start('PythonParser->transpileToJs() call 225');
225+
const parsePythonAndTranspileToJsTimer225 = perfTracker.start('parsePythonAndTranspileToJs call 225');
226226
const ast = this.parsePythonAndTranspileToJs(code, errorsReport);
227227
parsePythonAndTranspileToJsTimer225.end();
228228
return this.extractProgramBodyIfNeeded(ast);
@@ -302,7 +302,7 @@ export class YamlCompiler {
302302
}
303303

304304
private parsePythonIntoArrowFunction(codeString: string, cubeName, originalObj, errorsReport: ErrorReporter) {
305-
const parsePythonAndTranspileToJsTimer301 = perfTracker.start('PythonParser->transpileToJs() call 301');
305+
const parsePythonAndTranspileToJsTimer301 = perfTracker.start('parsePythonAndTranspileToJs call 301');
306306
const ast = this.parsePythonAndTranspileToJs(codeString, errorsReport);
307307
parsePythonAndTranspileToJsTimer301.end();
308308
return this.astIntoArrowFunction(ast as any, codeString, cubeName);

0 commit comments

Comments
 (0)