Add class name in timer name

This commit is contained in:
vakrilov
2017-05-14 11:03:57 +03:00
parent e266269793
commit 9df6003482
2 changed files with 9 additions and 2 deletions

View File

@@ -2,4 +2,6 @@
import { Border } from "tns-core-modules/ui/border";
// << border-require
console.dir(Border);
if (Border) {
// NOOP
}

View File

@@ -129,7 +129,12 @@ export function profile(name?: string): MethodDecorator {
var originalMethod = descriptor.value;
if (!name) {
name = key;
let className = "";
if (target && target.constructor && target.constructor.name) {
className = target.constructor.name + ".";
}
name = className + key;
}
profileNames.push(name);