mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Add the this.toString in the profile traces (#4731)
This commit is contained in:
2
tns-core-modules/profiling/profiling.d.ts
vendored
2
tns-core-modules/profiling/profiling.d.ts
vendored
@ -125,6 +125,6 @@ export declare function startCPUProfile(name: string): void;
|
||||
export declare function stopCPUProfile(name: string): void;
|
||||
|
||||
/**
|
||||
* Gets the uptime of the current process in miliseconds.
|
||||
* Gets the uptime of the current process in milliseconds.
|
||||
*/
|
||||
export function uptime(): number;
|
||||
|
@ -104,7 +104,7 @@ function timelineProfileFunctionFactory<F extends Function>(fn: F, name: string)
|
||||
return fn.apply(this, arguments);
|
||||
} finally {
|
||||
const end = time();
|
||||
console.log(`Timeline: Modules: ${name} (${start}ms. - ${end}ms.)`);
|
||||
console.log(`Timeline: Modules: ${name} ${this} (${start}ms. - ${end}ms.)`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user