Add the this.toString in the profile traces (#4731)

This commit is contained in:
Panayot Cankov
2017-08-24 11:04:46 +03:00
committed by GitHub
parent 06ad345015
commit d6689a04b2
2 changed files with 2 additions and 2 deletions

View File

@ -125,6 +125,6 @@ export declare function startCPUProfile(name: string): void;
export declare function stopCPUProfile(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; export function uptime(): number;

View File

@ -104,7 +104,7 @@ function timelineProfileFunctionFactory<F extends Function>(fn: F, name: string)
return fn.apply(this, arguments); return fn.apply(this, arguments);
} finally { } finally {
const end = time(); const end = time();
console.log(`Timeline: Modules: ${name} (${start}ms. - ${end}ms.)`); console.log(`Timeline: Modules: ${name} ${this} (${start}ms. - ${end}ms.)`);
} }
} }
} }