Skip to content

Commit d6689a0

Browse files
Add the this.toString in the profile traces (NativeScript#4731)
1 parent 06ad345 commit d6689a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tns-core-modules/profiling/profiling.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,6 @@ export declare function startCPUProfile(name: string): void;
125125
export declare function stopCPUProfile(name: string): void;
126126

127127
/**
128-
* Gets the uptime of the current process in miliseconds.
128+
* Gets the uptime of the current process in milliseconds.
129129
*/
130130
export function uptime(): number;

tns-core-modules/profiling/profiling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function timelineProfileFunctionFactory<F extends Function>(fn: F, name: string)
104104
return fn.apply(this, arguments);
105105
} finally {
106106
const end = time();
107-
console.log(`Timeline: Modules: ${name} (${start}ms. - ${end}ms.)`);
107+
console.log(`Timeline: Modules: ${name} ${this} (${start}ms. - ${end}ms.)`);
108108
}
109109
}
110110
}

0 commit comments

Comments
 (0)