mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
18
nativescript-core/profiling/index.d.ts
vendored
18
nativescript-core/profiling/index.d.ts
vendored
@@ -4,8 +4,8 @@
|
||||
*/
|
||||
|
||||
interface TimerInfo {
|
||||
totalTime: number;
|
||||
count: number;
|
||||
totalTime: number;
|
||||
count: number;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -14,15 +14,15 @@ interface TimerInfo {
|
||||
* - `timeline` Outputs method names along start/end timestamps in the console on the go.
|
||||
* - `lifecycle` Outputs basic non-verbose times for startup, navigation, etc.
|
||||
*/
|
||||
type InstrumentationMode = "counters" | "timeline" | "lifecycle";
|
||||
type InstrumentationMode = 'counters' | 'timeline' | 'lifecycle';
|
||||
|
||||
/**
|
||||
* Logging levels in order of verbosity.
|
||||
*/
|
||||
export enum Level {
|
||||
none,
|
||||
lifecycle,
|
||||
timeline,
|
||||
none,
|
||||
lifecycle,
|
||||
timeline,
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -114,11 +114,7 @@ export declare function profile<F extends Function>(name: string, fn: F): F;
|
||||
/**
|
||||
* Method decorator. It will intercept the method calls and start and pause a timer before and after the method call. Works only if profiling is enabled.
|
||||
*/
|
||||
export declare function profile<T>(
|
||||
target: Object,
|
||||
propertyKey: string | symbol,
|
||||
descriptor: TypedPropertyDescriptor<T>
|
||||
): TypedPropertyDescriptor<T> | void;
|
||||
export declare function profile<T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void;
|
||||
export function profile(): any;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user