mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add class name in timer name
This commit is contained in:
@@ -2,4 +2,6 @@
|
||||
import { Border } from "tns-core-modules/ui/border";
|
||||
// << border-require
|
||||
|
||||
console.dir(Border);
|
||||
if (Border) {
|
||||
// NOOP
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user