chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-06 14:25:11 -07:00
parent 94cf5c4706
commit 6336eac4b5
477 changed files with 59087 additions and 74961 deletions

View File

@@ -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;
/**