@oino-ts/types 0.14.1 → 0.15.1
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.
- package/common/src/OINOBenchmark.d.ts +10 -14
- package/package.json +1 -1
|
@@ -38,15 +38,14 @@ export declare abstract class OINOBenchmark {
|
|
|
38
38
|
* @param method of the benchmark
|
|
39
39
|
*/
|
|
40
40
|
static startMetric(module: string, method: string): void;
|
|
41
|
-
protected abstract _endMetric(module: string, method: string
|
|
41
|
+
protected abstract _endMetric(module: string, method: string): void;
|
|
42
42
|
/**
|
|
43
43
|
* Complete benchmark timing
|
|
44
44
|
*
|
|
45
45
|
* @param module of the benchmark
|
|
46
46
|
* @param method of the benchmark
|
|
47
|
-
* @param category optional subcategory of the benchmark
|
|
48
47
|
*/
|
|
49
|
-
static endMetric(module: string, method: string
|
|
48
|
+
static endMetric(module: string, method: string): void;
|
|
50
49
|
protected abstract _getMetric(module: string, method: string): number;
|
|
51
50
|
/**
|
|
52
51
|
* Get given benchmark data.
|
|
@@ -62,29 +61,27 @@ export declare abstract class OINOBenchmark {
|
|
|
62
61
|
*
|
|
63
62
|
*/
|
|
64
63
|
static getMetrics(): Record<string, number>;
|
|
65
|
-
protected abstract _trackMetric(module: string, method: string,
|
|
64
|
+
protected abstract _trackMetric(module: string, method: string, value: number): void;
|
|
66
65
|
/**
|
|
67
66
|
* Track a metric value
|
|
68
67
|
*
|
|
69
|
-
* @param value of the metric
|
|
70
68
|
* @param module of the metric
|
|
71
69
|
* @param method of the metric
|
|
72
|
-
* @param
|
|
70
|
+
* @param value of the metric
|
|
73
71
|
*
|
|
74
72
|
*/
|
|
75
|
-
static trackMetric(module: string, method: string,
|
|
76
|
-
protected abstract _trackException(module: string, method: string,
|
|
73
|
+
static trackMetric(module: string, method: string, value: number): void;
|
|
74
|
+
protected abstract _trackException(module: string, method: string, name: string, message: string, stack: string): void;
|
|
77
75
|
/**
|
|
78
76
|
* Track an exception
|
|
79
77
|
*
|
|
80
78
|
* @param module of the benchmark
|
|
81
79
|
* @param method of the benchmark
|
|
82
|
-
* @param category optional subcategory of the benchmark
|
|
83
80
|
* @param name of the exception
|
|
84
81
|
* @param message of the exception
|
|
85
82
|
* @param stack trace of the exception
|
|
86
83
|
*/
|
|
87
|
-
static trackException(module: string, method: string,
|
|
84
|
+
static trackException(module: string, method: string, name: string, message: string, stack: string): void;
|
|
88
85
|
protected abstract _getExceptions(): any[];
|
|
89
86
|
/**
|
|
90
87
|
* Get all tracked exceptions.
|
|
@@ -119,9 +116,8 @@ export declare class OINOMemoryBenchmark extends OINOBenchmark {
|
|
|
119
116
|
*
|
|
120
117
|
* @param module of the benchmark
|
|
121
118
|
* @param method of the benchmark
|
|
122
|
-
* @param category optional subcategory of the benchmark
|
|
123
119
|
*/
|
|
124
|
-
protected _endMetric(module: string, method: string
|
|
120
|
+
protected _endMetric(module: string, method: string): void;
|
|
125
121
|
/**
|
|
126
122
|
* Get given benchmark data.
|
|
127
123
|
*
|
|
@@ -135,7 +131,7 @@ export declare class OINOMemoryBenchmark extends OINOBenchmark {
|
|
|
135
131
|
*
|
|
136
132
|
*/
|
|
137
133
|
protected _getMetrics(): Record<string, number>;
|
|
138
|
-
protected _trackMetric(module: string, method: string,
|
|
139
|
-
protected _trackException(module: string, method: string,
|
|
134
|
+
protected _trackMetric(module: string, method: string, value: number): void;
|
|
135
|
+
protected _trackException(module: string, method: string, name: string, message: string, stack: string): void;
|
|
140
136
|
protected _getExceptions(): any[];
|
|
141
137
|
}
|