@oino-ts/common 0.21.1 → 0.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -147,7 +147,7 @@ class OINOBenchmark {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
|
-
* Track an exception
|
|
150
|
+
* Track an exception. Does not consider enabled modules.
|
|
151
151
|
*
|
|
152
152
|
* @param module of the benchmark
|
|
153
153
|
* @param method of the benchmark
|
|
@@ -156,9 +156,7 @@ class OINOBenchmark {
|
|
|
156
156
|
* @param stack trace of the exception
|
|
157
157
|
*/
|
|
158
158
|
static trackException(module, method, name, message, stack) {
|
|
159
|
-
|
|
160
|
-
OINOBenchmark._instance?._trackException(module, method, name, message, stack);
|
|
161
|
-
}
|
|
159
|
+
OINOBenchmark._instance?._trackException(module, method, name, message, stack);
|
|
162
160
|
}
|
|
163
161
|
/**
|
|
164
162
|
* Get all tracked exceptions.
|
|
@@ -186,6 +184,7 @@ class OINOMemoryBenchmark extends OINOBenchmark {
|
|
|
186
184
|
*
|
|
187
185
|
*/
|
|
188
186
|
_reset() {
|
|
187
|
+
this._exceptions = [];
|
|
189
188
|
this._benchmarkData = {};
|
|
190
189
|
this._benchmarkCount = {};
|
|
191
190
|
this._healthRequests = 0;
|
|
@@ -144,7 +144,7 @@ export class OINOBenchmark {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
|
-
* Track an exception
|
|
147
|
+
* Track an exception. Does not consider enabled modules.
|
|
148
148
|
*
|
|
149
149
|
* @param module of the benchmark
|
|
150
150
|
* @param method of the benchmark
|
|
@@ -153,9 +153,7 @@ export class OINOBenchmark {
|
|
|
153
153
|
* @param stack trace of the exception
|
|
154
154
|
*/
|
|
155
155
|
static trackException(module, method, name, message, stack) {
|
|
156
|
-
|
|
157
|
-
OINOBenchmark._instance?._trackException(module, method, name, message, stack);
|
|
158
|
-
}
|
|
156
|
+
OINOBenchmark._instance?._trackException(module, method, name, message, stack);
|
|
159
157
|
}
|
|
160
158
|
/**
|
|
161
159
|
* Get all tracked exceptions.
|
|
@@ -182,6 +180,7 @@ export class OINOMemoryBenchmark extends OINOBenchmark {
|
|
|
182
180
|
*
|
|
183
181
|
*/
|
|
184
182
|
_reset() {
|
|
183
|
+
this._exceptions = [];
|
|
185
184
|
this._benchmarkData = {};
|
|
186
185
|
this._benchmarkCount = {};
|
|
187
186
|
this._healthRequests = 0;
|
|
@@ -105,7 +105,7 @@ export declare abstract class OINOBenchmark {
|
|
|
105
105
|
static trackMetric(module: string, method: string, value: number, success?: boolean): void;
|
|
106
106
|
protected abstract _trackException(module: string, method: string, name: string, message: string, stack: string): void;
|
|
107
107
|
/**
|
|
108
|
-
* Track an exception
|
|
108
|
+
* Track an exception. Does not consider enabled modules.
|
|
109
109
|
*
|
|
110
110
|
* @param module of the benchmark
|
|
111
111
|
* @param method of the benchmark
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oino-ts/common",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
4
4
|
"description": "OINO TS package for common classes.",
|
|
5
5
|
"author": "Matias Kiviniemi (pragmatta)",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@oino-ts/types": "0.21.
|
|
22
|
+
"@oino-ts/types": "0.21.2",
|
|
23
23
|
"@types/node": "^22.0.0",
|
|
24
24
|
"typescript": "~5.9.0"
|
|
25
25
|
},
|
package/src/OINOBenchmark.ts
CHANGED
|
@@ -170,7 +170,7 @@ export abstract class OINOBenchmark {
|
|
|
170
170
|
|
|
171
171
|
protected abstract _trackException(module:string, method:string, name:string, message:string, stack: string):void
|
|
172
172
|
/**
|
|
173
|
-
* Track an exception
|
|
173
|
+
* Track an exception. Does not consider enabled modules.
|
|
174
174
|
*
|
|
175
175
|
* @param module of the benchmark
|
|
176
176
|
* @param method of the benchmark
|
|
@@ -179,9 +179,7 @@ export abstract class OINOBenchmark {
|
|
|
179
179
|
* @param stack trace of the exception
|
|
180
180
|
*/
|
|
181
181
|
static trackException(module:string, method:string, name:string, message:string, stack:string):void {
|
|
182
|
-
|
|
183
|
-
OINOBenchmark._instance?._trackException(module, method, name, message, stack)
|
|
184
|
-
}
|
|
182
|
+
OINOBenchmark._instance?._trackException(module, method, name, message, stack)
|
|
185
183
|
}
|
|
186
184
|
|
|
187
185
|
protected abstract _getExceptions():any[]
|
|
@@ -214,6 +212,7 @@ export class OINOMemoryBenchmark extends OINOBenchmark {
|
|
|
214
212
|
*
|
|
215
213
|
*/
|
|
216
214
|
protected _reset():void {
|
|
215
|
+
this._exceptions = []
|
|
217
216
|
this._benchmarkData = {}
|
|
218
217
|
this._benchmarkCount = {}
|
|
219
218
|
this._healthRequests = 0
|