@aurelia/debug
Advanced tools
Comparing version 0.8.0-dev.202010070120 to 0.8.0-dev.202010070306
@@ -10,44 +10,41 @@ import { PLATFORM, Reporter, Tracer } from '@aurelia/kernel'; | ||
}; | ||
let TraceInfo = /** @class */ (() => { | ||
class TraceInfo { | ||
constructor(objName, methodName, params) { | ||
this.objName = objName; | ||
this.methodName = methodName; | ||
this.params = params; | ||
this.objName = objName; | ||
this.methodName = methodName; | ||
this.depth = TraceInfo.stack.length; | ||
this.params = params; | ||
this.next = marker; | ||
this.prev = TraceInfo.tail; | ||
TraceInfo.tail.next = this; | ||
TraceInfo.tail = this; | ||
TraceInfo.stack.push(this); | ||
class TraceInfo { | ||
constructor(objName, methodName, params) { | ||
this.objName = objName; | ||
this.methodName = methodName; | ||
this.params = params; | ||
this.objName = objName; | ||
this.methodName = methodName; | ||
this.depth = TraceInfo.stack.length; | ||
this.params = params; | ||
this.next = marker; | ||
this.prev = TraceInfo.tail; | ||
TraceInfo.tail.next = this; | ||
TraceInfo.tail = this; | ||
TraceInfo.stack.push(this); | ||
} | ||
static reset() { | ||
let current = TraceInfo.head; | ||
let next = null; | ||
while (current != null) { | ||
next = current.next; | ||
current.next = null; | ||
current.prev = null; | ||
current.params = null; | ||
current = next; | ||
} | ||
static reset() { | ||
let current = TraceInfo.head; | ||
let next = null; | ||
while (current != null) { | ||
next = current.next; | ||
current.next = null; | ||
current.prev = null; | ||
current.params = null; | ||
current = next; | ||
} | ||
TraceInfo.head = marker; | ||
TraceInfo.tail = marker; | ||
TraceInfo.stack = []; | ||
} | ||
static enter(objName, methodName, params) { | ||
return new TraceInfo(objName, methodName, params); | ||
} | ||
static leave() { | ||
return TraceInfo.stack.pop(); | ||
} | ||
TraceInfo.head = marker; | ||
TraceInfo.tail = marker; | ||
TraceInfo.stack = []; | ||
} | ||
TraceInfo.head = marker; | ||
TraceInfo.tail = marker; | ||
TraceInfo.stack = []; | ||
return TraceInfo; | ||
})(); | ||
static enter(objName, methodName, params) { | ||
return new TraceInfo(objName, methodName, params); | ||
} | ||
static leave() { | ||
return TraceInfo.stack.pop(); | ||
} | ||
} | ||
TraceInfo.head = marker; | ||
TraceInfo.tail = marker; | ||
TraceInfo.stack = []; | ||
export const DebugTracer = { | ||
@@ -54,0 +51,0 @@ ...Tracer, |
@@ -12,2 +12,3 @@ (function (factory) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Unparser = exports.stringifyLifecycleFlags = exports.DebugTracer = exports.TraceConfiguration = exports.DebugConfiguration = void 0; | ||
var configuration_1 = require("./configuration"); | ||
@@ -14,0 +15,0 @@ Object.defineProperty(exports, "DebugConfiguration", { enumerable: true, get: function () { return configuration_1.DebugConfiguration; } }); |
@@ -22,44 +22,41 @@ (function (factory) { | ||
}; | ||
let TraceInfo = /** @class */ (() => { | ||
class TraceInfo { | ||
constructor(objName, methodName, params) { | ||
this.objName = objName; | ||
this.methodName = methodName; | ||
this.params = params; | ||
this.objName = objName; | ||
this.methodName = methodName; | ||
this.depth = TraceInfo.stack.length; | ||
this.params = params; | ||
this.next = marker; | ||
this.prev = TraceInfo.tail; | ||
TraceInfo.tail.next = this; | ||
TraceInfo.tail = this; | ||
TraceInfo.stack.push(this); | ||
class TraceInfo { | ||
constructor(objName, methodName, params) { | ||
this.objName = objName; | ||
this.methodName = methodName; | ||
this.params = params; | ||
this.objName = objName; | ||
this.methodName = methodName; | ||
this.depth = TraceInfo.stack.length; | ||
this.params = params; | ||
this.next = marker; | ||
this.prev = TraceInfo.tail; | ||
TraceInfo.tail.next = this; | ||
TraceInfo.tail = this; | ||
TraceInfo.stack.push(this); | ||
} | ||
static reset() { | ||
let current = TraceInfo.head; | ||
let next = null; | ||
while (current != null) { | ||
next = current.next; | ||
current.next = null; | ||
current.prev = null; | ||
current.params = null; | ||
current = next; | ||
} | ||
static reset() { | ||
let current = TraceInfo.head; | ||
let next = null; | ||
while (current != null) { | ||
next = current.next; | ||
current.next = null; | ||
current.prev = null; | ||
current.params = null; | ||
current = next; | ||
} | ||
TraceInfo.head = marker; | ||
TraceInfo.tail = marker; | ||
TraceInfo.stack = []; | ||
} | ||
static enter(objName, methodName, params) { | ||
return new TraceInfo(objName, methodName, params); | ||
} | ||
static leave() { | ||
return TraceInfo.stack.pop(); | ||
} | ||
TraceInfo.head = marker; | ||
TraceInfo.tail = marker; | ||
TraceInfo.stack = []; | ||
} | ||
TraceInfo.head = marker; | ||
TraceInfo.tail = marker; | ||
TraceInfo.stack = []; | ||
return TraceInfo; | ||
})(); | ||
static enter(objName, methodName, params) { | ||
return new TraceInfo(objName, methodName, params); | ||
} | ||
static leave() { | ||
return TraceInfo.stack.pop(); | ||
} | ||
} | ||
TraceInfo.head = marker; | ||
TraceInfo.tail = marker; | ||
TraceInfo.stack = []; | ||
exports.DebugTracer = { | ||
@@ -66,0 +63,0 @@ ...kernel_1.Tracer, |
{ | ||
"name": "@aurelia/debug", | ||
"version": "0.8.0-dev.202010070120", | ||
"version": "0.8.0-dev.202010070306", | ||
"main": "dist/umd/index.js", | ||
@@ -37,11 +37,11 @@ "module": "dist/esnext/index.js", | ||
"dependencies": { | ||
"@aurelia/kernel": "^0.8.0-dev.202010070120", | ||
"@aurelia/metadata": "^0.8.0-dev.202010070120", | ||
"@aurelia/runtime": "^0.8.0-dev.202010070120", | ||
"@aurelia/scheduler": "^0.8.0-dev.202010070120" | ||
"@aurelia/kernel": "^0.8.0-dev.202010070306", | ||
"@aurelia/metadata": "^0.8.0-dev.202010070306", | ||
"@aurelia/runtime": "^0.8.0-dev.202010070306", | ||
"@aurelia/scheduler": "^0.8.0-dev.202010070306" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^3.9.3" | ||
"typescript": "^4.0.3" | ||
}, | ||
"gitHead": "0e5759c1b9eaab7a7ccdb7d0c1ffd99faa3a02bf" | ||
"gitHead": "c16cb9a2ef6b8052945c5dc1b8b1d99d154343e9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
189099
3301