mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup reexports
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
declare var __startCPUProfiler: any;
|
||||
declare var __stopCPUProfiler: any;
|
||||
|
||||
import { TimerInfo as TimerInfoDefinition, InstrumentationMode } from ".";
|
||||
|
||||
export function uptime() {
|
||||
return global.android ? (<any>org).nativescript.Process.getUpTime() : (<any>global).__tns_uptime();
|
||||
}
|
||||
@@ -14,7 +12,9 @@ export function log(message: string): void {
|
||||
console.log(message);
|
||||
}
|
||||
|
||||
interface TimerInfo extends TimerInfoDefinition {
|
||||
export type InstrumentationMode = "counters" | "timeline" | "lifecycle";
|
||||
|
||||
export interface TimerInfo {
|
||||
totalTime: number;
|
||||
lastTime?: number;
|
||||
count: number;
|
||||
@@ -239,7 +239,7 @@ const voidMethodDecorator = () => {
|
||||
// no op
|
||||
};
|
||||
|
||||
export function profile(nameFnOrTarget?: string | Function | Object, fnOrKey?: Function | string | symbol, descriptor?: PropertyDescriptor): Function | MethodDecorator {
|
||||
export function profile(nameFnOrTarget?: string | Function | Object, fnOrKey?: Function | string | symbol, descriptor?: PropertyDescriptor, attrs?: any): Function | MethodDecorator {
|
||||
if (typeof nameFnOrTarget === "object" && (typeof fnOrKey === "string" || typeof fnOrKey === "symbol")) {
|
||||
if (!profileFunctionFactory) {
|
||||
return;
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"name": "profiling",
|
||||
"main": "profiling",
|
||||
"types": "profiling.d.ts",
|
||||
"nativescript": {}
|
||||
}
|
||||
Reference in New Issue
Block a user