From d6689a04b2dcb9472bca52839177a1be0c83a52c Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Thu, 24 Aug 2017 11:04:46 +0300 Subject: [PATCH] Add the this.toString in the profile traces (#4731) --- tns-core-modules/profiling/profiling.d.ts | 2 +- tns-core-modules/profiling/profiling.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tns-core-modules/profiling/profiling.d.ts b/tns-core-modules/profiling/profiling.d.ts index f60685151..da84fd59f 100644 --- a/tns-core-modules/profiling/profiling.d.ts +++ b/tns-core-modules/profiling/profiling.d.ts @@ -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; diff --git a/tns-core-modules/profiling/profiling.ts b/tns-core-modules/profiling/profiling.ts index c1daaa488..865c80688 100644 --- a/tns-core-modules/profiling/profiling.ts +++ b/tns-core-modules/profiling/profiling.ts @@ -104,7 +104,7 @@ function timelineProfileFunctionFactory(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.)`); } } }