@datadog/pprof 1.0.2 → 1.0.3
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/package.json +4 -4
- package/prebuilds/darwin-arm64/node-102.node +0 -0
- package/prebuilds/darwin-arm64/node-108.node +0 -0
- package/prebuilds/darwin-arm64/node-72.node +0 -0
- package/prebuilds/darwin-arm64/node-79.node +0 -0
- package/prebuilds/darwin-arm64/node-83.node +0 -0
- package/prebuilds/darwin-arm64/node-88.node +0 -0
- package/prebuilds/darwin-arm64/node-93.node +0 -0
- package/prebuilds/darwin-x64/node-102.node +0 -0
- package/prebuilds/darwin-x64/node-108.node +0 -0
- package/prebuilds/darwin-x64/node-72.node +0 -0
- package/prebuilds/darwin-x64/node-79.node +0 -0
- package/prebuilds/darwin-x64/node-83.node +0 -0
- package/prebuilds/darwin-x64/node-88.node +0 -0
- package/prebuilds/darwin-x64/node-93.node +0 -0
- package/prebuilds/win32-ia32/node-102.node +0 -0
- package/prebuilds/win32-ia32/node-72.node +0 -0
- package/prebuilds/win32-ia32/node-79.node +0 -0
- package/prebuilds/win32-ia32/node-83.node +0 -0
- package/prebuilds/win32-ia32/node-88.node +0 -0
- package/prebuilds/win32-ia32/node-93.node +0 -0
- package/prebuilds/win32-x64/node-102.node +0 -0
- package/prebuilds/win32-x64/node-108.node +0 -0
- package/prebuilds/win32-x64/node-72.node +0 -0
- package/prebuilds/win32-x64/node-79.node +0 -0
- package/prebuilds/win32-x64/node-83.node +0 -0
- package/prebuilds/win32-x64/node-88.node +0 -0
- package/prebuilds/win32-x64/node-93.node +0 -0
- package/proto/profile.d.ts +110 -54
- package/proto/profile.js +465 -293
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datadog/pprof",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "pprof support for Node.js",
|
|
5
5
|
"repository": "datadog/pprof-nodejs",
|
|
6
6
|
"main": "out/src/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"prepare": "npm run compile",
|
|
21
21
|
"pretest": "npm run compile && npm run rebuild",
|
|
22
22
|
"proto": "npm run proto:profile",
|
|
23
|
-
"proto:profile": "mkdir -p proto && pbjs -t static-module -w commonjs -o proto/profile.js third_party/proto/profile.proto && pbts -o proto/profile.d.ts proto/profile.js"
|
|
23
|
+
"proto:profile": "mkdir -p proto && npx --yes pbjs -t static-module -w commonjs -o proto/profile.js third_party/proto/profile.proto && pbts -o proto/profile.d.ts proto/profile.js"
|
|
24
24
|
},
|
|
25
25
|
"author": {
|
|
26
26
|
"name": "Google Inc."
|
|
@@ -34,8 +34,6 @@
|
|
|
34
34
|
"p-limit": "^3.1.0",
|
|
35
35
|
"pify": "^5.0.0",
|
|
36
36
|
"protobufjs": "^7.0.0",
|
|
37
|
-
"rimraf": "^3.0.2",
|
|
38
|
-
"semver": "^7.3.5",
|
|
39
37
|
"source-map": "^0.7.3",
|
|
40
38
|
"split": "^1.0.1"
|
|
41
39
|
},
|
|
@@ -48,6 +46,7 @@
|
|
|
48
46
|
"@types/request": "^2.47.1",
|
|
49
47
|
"@types/sinon": "^10.0.0",
|
|
50
48
|
"@types/tmp": "^0.2.3",
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^5.38.0",
|
|
51
50
|
"axios": "^0.27.2",
|
|
52
51
|
"checksum": "^1.0.0",
|
|
53
52
|
"codecov": "^3.0.0",
|
|
@@ -63,6 +62,7 @@
|
|
|
63
62
|
"mkdirp": "^1.0.4",
|
|
64
63
|
"mocha": "^9.2.2",
|
|
65
64
|
"nyc": "^15.0.0",
|
|
65
|
+
"protobufjs-cli": "^1.0.2",
|
|
66
66
|
"rimraf": "^3.0.2",
|
|
67
67
|
"semver": "^7.3.5",
|
|
68
68
|
"sinon": "^14.0.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/proto/profile.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as $protobuf from "protobufjs";
|
|
2
|
-
|
|
2
|
+
import Long = require("long");
|
|
3
3
|
/** Namespace perftools. */
|
|
4
4
|
export namespace perftools {
|
|
5
5
|
|
|
@@ -10,50 +10,50 @@ export namespace perftools {
|
|
|
10
10
|
interface IProfile {
|
|
11
11
|
|
|
12
12
|
/** Profile sampleType */
|
|
13
|
-
sampleType?: perftools.profiles.IValueType[];
|
|
13
|
+
sampleType?: (perftools.profiles.IValueType[]|null);
|
|
14
14
|
|
|
15
15
|
/** Profile sample */
|
|
16
|
-
sample?: perftools.profiles.ISample[];
|
|
16
|
+
sample?: (perftools.profiles.ISample[]|null);
|
|
17
17
|
|
|
18
18
|
/** Profile mapping */
|
|
19
|
-
mapping?: perftools.profiles.IMapping[];
|
|
19
|
+
mapping?: (perftools.profiles.IMapping[]|null);
|
|
20
20
|
|
|
21
21
|
/** Profile location */
|
|
22
|
-
location?: perftools.profiles.ILocation[];
|
|
22
|
+
location?: (perftools.profiles.ILocation[]|null);
|
|
23
23
|
|
|
24
24
|
/** Profile function */
|
|
25
|
-
"function"?: perftools.profiles.IFunction[];
|
|
25
|
+
"function"?: (perftools.profiles.IFunction[]|null);
|
|
26
26
|
|
|
27
27
|
/** Profile stringTable */
|
|
28
|
-
stringTable?: string[];
|
|
28
|
+
stringTable?: (string[]|null);
|
|
29
29
|
|
|
30
30
|
/** Profile dropFrames */
|
|
31
|
-
dropFrames?: (number|Long);
|
|
31
|
+
dropFrames?: (number|Long|null);
|
|
32
32
|
|
|
33
33
|
/** Profile keepFrames */
|
|
34
|
-
keepFrames?: (number|Long);
|
|
34
|
+
keepFrames?: (number|Long|null);
|
|
35
35
|
|
|
36
36
|
/** Profile timeNanos */
|
|
37
|
-
timeNanos?: (number|Long);
|
|
37
|
+
timeNanos?: (number|Long|null);
|
|
38
38
|
|
|
39
39
|
/** Profile durationNanos */
|
|
40
|
-
durationNanos?: (number|Long);
|
|
40
|
+
durationNanos?: (number|Long|null);
|
|
41
41
|
|
|
42
42
|
/** Profile periodType */
|
|
43
|
-
periodType?: perftools.profiles.IValueType;
|
|
43
|
+
periodType?: (perftools.profiles.IValueType|null);
|
|
44
44
|
|
|
45
45
|
/** Profile period */
|
|
46
|
-
period?: (number|Long);
|
|
46
|
+
period?: (number|Long|null);
|
|
47
47
|
|
|
48
48
|
/** Profile comment */
|
|
49
|
-
comment?: (number|Long)[];
|
|
49
|
+
comment?: ((number|Long)[]|null);
|
|
50
50
|
|
|
51
51
|
/** Profile defaultSampleType */
|
|
52
|
-
defaultSampleType?: (number|Long);
|
|
52
|
+
defaultSampleType?: (number|Long|null);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/** Represents a Profile. */
|
|
56
|
-
class Profile {
|
|
56
|
+
class Profile implements IProfile {
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Constructs a new Profile.
|
|
@@ -74,7 +74,7 @@ export namespace perftools {
|
|
|
74
74
|
public location: perftools.profiles.ILocation[];
|
|
75
75
|
|
|
76
76
|
/** Profile function. */
|
|
77
|
-
public
|
|
77
|
+
public function: perftools.profiles.IFunction[];
|
|
78
78
|
|
|
79
79
|
/** Profile stringTable. */
|
|
80
80
|
public stringTable: string[];
|
|
@@ -172,20 +172,27 @@ export namespace perftools {
|
|
|
172
172
|
* @returns JSON object
|
|
173
173
|
*/
|
|
174
174
|
public toJSON(): { [k: string]: any };
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Gets the default type url for Profile
|
|
178
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
179
|
+
* @returns The default type url
|
|
180
|
+
*/
|
|
181
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
175
182
|
}
|
|
176
183
|
|
|
177
184
|
/** Properties of a ValueType. */
|
|
178
185
|
interface IValueType {
|
|
179
186
|
|
|
180
187
|
/** ValueType type */
|
|
181
|
-
type?: (number|Long);
|
|
188
|
+
type?: (number|Long|null);
|
|
182
189
|
|
|
183
190
|
/** ValueType unit */
|
|
184
|
-
unit?: (number|Long);
|
|
191
|
+
unit?: (number|Long|null);
|
|
185
192
|
}
|
|
186
193
|
|
|
187
194
|
/** Represents a ValueType. */
|
|
188
|
-
class ValueType {
|
|
195
|
+
class ValueType implements IValueType {
|
|
189
196
|
|
|
190
197
|
/**
|
|
191
198
|
* Constructs a new ValueType.
|
|
@@ -268,23 +275,30 @@ export namespace perftools {
|
|
|
268
275
|
* @returns JSON object
|
|
269
276
|
*/
|
|
270
277
|
public toJSON(): { [k: string]: any };
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Gets the default type url for ValueType
|
|
281
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
282
|
+
* @returns The default type url
|
|
283
|
+
*/
|
|
284
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
271
285
|
}
|
|
272
286
|
|
|
273
287
|
/** Properties of a Sample. */
|
|
274
288
|
interface ISample {
|
|
275
289
|
|
|
276
290
|
/** Sample locationId */
|
|
277
|
-
locationId?: (number|Long)[];
|
|
291
|
+
locationId?: ((number|Long)[]|null);
|
|
278
292
|
|
|
279
293
|
/** Sample value */
|
|
280
|
-
value?: (number|Long)[];
|
|
294
|
+
value?: ((number|Long)[]|null);
|
|
281
295
|
|
|
282
296
|
/** Sample label */
|
|
283
|
-
label?: perftools.profiles.ILabel[];
|
|
297
|
+
label?: (perftools.profiles.ILabel[]|null);
|
|
284
298
|
}
|
|
285
299
|
|
|
286
300
|
/** Represents a Sample. */
|
|
287
|
-
class Sample {
|
|
301
|
+
class Sample implements ISample {
|
|
288
302
|
|
|
289
303
|
/**
|
|
290
304
|
* Constructs a new Sample.
|
|
@@ -370,26 +384,33 @@ export namespace perftools {
|
|
|
370
384
|
* @returns JSON object
|
|
371
385
|
*/
|
|
372
386
|
public toJSON(): { [k: string]: any };
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Gets the default type url for Sample
|
|
390
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
391
|
+
* @returns The default type url
|
|
392
|
+
*/
|
|
393
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
373
394
|
}
|
|
374
395
|
|
|
375
396
|
/** Properties of a Label. */
|
|
376
397
|
interface ILabel {
|
|
377
398
|
|
|
378
399
|
/** Label key */
|
|
379
|
-
key?: (number|Long);
|
|
400
|
+
key?: (number|Long|null);
|
|
380
401
|
|
|
381
402
|
/** Label str */
|
|
382
|
-
str?: (number|Long);
|
|
403
|
+
str?: (number|Long|null);
|
|
383
404
|
|
|
384
405
|
/** Label num */
|
|
385
|
-
num?: (number|Long);
|
|
406
|
+
num?: (number|Long|null);
|
|
386
407
|
|
|
387
408
|
/** Label numUnit */
|
|
388
|
-
numUnit?: (number|Long);
|
|
409
|
+
numUnit?: (number|Long|null);
|
|
389
410
|
}
|
|
390
411
|
|
|
391
412
|
/** Represents a Label. */
|
|
392
|
-
class Label {
|
|
413
|
+
class Label implements ILabel {
|
|
393
414
|
|
|
394
415
|
/**
|
|
395
416
|
* Constructs a new Label.
|
|
@@ -478,44 +499,51 @@ export namespace perftools {
|
|
|
478
499
|
* @returns JSON object
|
|
479
500
|
*/
|
|
480
501
|
public toJSON(): { [k: string]: any };
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Gets the default type url for Label
|
|
505
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
506
|
+
* @returns The default type url
|
|
507
|
+
*/
|
|
508
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
481
509
|
}
|
|
482
510
|
|
|
483
511
|
/** Properties of a Mapping. */
|
|
484
512
|
interface IMapping {
|
|
485
513
|
|
|
486
514
|
/** Mapping id */
|
|
487
|
-
id?: (number|Long);
|
|
515
|
+
id?: (number|Long|null);
|
|
488
516
|
|
|
489
517
|
/** Mapping memoryStart */
|
|
490
|
-
memoryStart?: (number|Long);
|
|
518
|
+
memoryStart?: (number|Long|null);
|
|
491
519
|
|
|
492
520
|
/** Mapping memoryLimit */
|
|
493
|
-
memoryLimit?: (number|Long);
|
|
521
|
+
memoryLimit?: (number|Long|null);
|
|
494
522
|
|
|
495
523
|
/** Mapping fileOffset */
|
|
496
|
-
fileOffset?: (number|Long);
|
|
524
|
+
fileOffset?: (number|Long|null);
|
|
497
525
|
|
|
498
526
|
/** Mapping filename */
|
|
499
|
-
filename?: (number|Long);
|
|
527
|
+
filename?: (number|Long|null);
|
|
500
528
|
|
|
501
529
|
/** Mapping buildId */
|
|
502
|
-
buildId?: (number|Long);
|
|
530
|
+
buildId?: (number|Long|null);
|
|
503
531
|
|
|
504
532
|
/** Mapping hasFunctions */
|
|
505
|
-
hasFunctions?: boolean;
|
|
533
|
+
hasFunctions?: (boolean|null);
|
|
506
534
|
|
|
507
535
|
/** Mapping hasFilenames */
|
|
508
|
-
hasFilenames?: boolean;
|
|
536
|
+
hasFilenames?: (boolean|null);
|
|
509
537
|
|
|
510
538
|
/** Mapping hasLineNumbers */
|
|
511
|
-
hasLineNumbers?: boolean;
|
|
539
|
+
hasLineNumbers?: (boolean|null);
|
|
512
540
|
|
|
513
541
|
/** Mapping hasInlineFrames */
|
|
514
|
-
hasInlineFrames?: boolean;
|
|
542
|
+
hasInlineFrames?: (boolean|null);
|
|
515
543
|
}
|
|
516
544
|
|
|
517
545
|
/** Represents a Mapping. */
|
|
518
|
-
class Mapping {
|
|
546
|
+
class Mapping implements IMapping {
|
|
519
547
|
|
|
520
548
|
/**
|
|
521
549
|
* Constructs a new Mapping.
|
|
@@ -622,26 +650,33 @@ export namespace perftools {
|
|
|
622
650
|
* @returns JSON object
|
|
623
651
|
*/
|
|
624
652
|
public toJSON(): { [k: string]: any };
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Gets the default type url for Mapping
|
|
656
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
657
|
+
* @returns The default type url
|
|
658
|
+
*/
|
|
659
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
625
660
|
}
|
|
626
661
|
|
|
627
662
|
/** Properties of a Location. */
|
|
628
663
|
interface ILocation {
|
|
629
664
|
|
|
630
665
|
/** Location id */
|
|
631
|
-
id?: (number|Long);
|
|
666
|
+
id?: (number|Long|null);
|
|
632
667
|
|
|
633
668
|
/** Location mappingId */
|
|
634
|
-
mappingId?: (number|Long);
|
|
669
|
+
mappingId?: (number|Long|null);
|
|
635
670
|
|
|
636
671
|
/** Location address */
|
|
637
|
-
address?: (number|Long);
|
|
672
|
+
address?: (number|Long|null);
|
|
638
673
|
|
|
639
674
|
/** Location line */
|
|
640
|
-
line?: perftools.profiles.ILine[];
|
|
675
|
+
line?: (perftools.profiles.ILine[]|null);
|
|
641
676
|
}
|
|
642
677
|
|
|
643
678
|
/** Represents a Location. */
|
|
644
|
-
class Location {
|
|
679
|
+
class Location implements ILocation {
|
|
645
680
|
|
|
646
681
|
/**
|
|
647
682
|
* Constructs a new Location.
|
|
@@ -730,20 +765,27 @@ export namespace perftools {
|
|
|
730
765
|
* @returns JSON object
|
|
731
766
|
*/
|
|
732
767
|
public toJSON(): { [k: string]: any };
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Gets the default type url for Location
|
|
771
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
772
|
+
* @returns The default type url
|
|
773
|
+
*/
|
|
774
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
733
775
|
}
|
|
734
776
|
|
|
735
777
|
/** Properties of a Line. */
|
|
736
778
|
interface ILine {
|
|
737
779
|
|
|
738
780
|
/** Line functionId */
|
|
739
|
-
functionId?: (number|Long);
|
|
781
|
+
functionId?: (number|Long|null);
|
|
740
782
|
|
|
741
783
|
/** Line line */
|
|
742
|
-
line?: (number|Long);
|
|
784
|
+
line?: (number|Long|null);
|
|
743
785
|
}
|
|
744
786
|
|
|
745
787
|
/** Represents a Line. */
|
|
746
|
-
class Line {
|
|
788
|
+
class Line implements ILine {
|
|
747
789
|
|
|
748
790
|
/**
|
|
749
791
|
* Constructs a new Line.
|
|
@@ -826,29 +868,36 @@ export namespace perftools {
|
|
|
826
868
|
* @returns JSON object
|
|
827
869
|
*/
|
|
828
870
|
public toJSON(): { [k: string]: any };
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Gets the default type url for Line
|
|
874
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
875
|
+
* @returns The default type url
|
|
876
|
+
*/
|
|
877
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
829
878
|
}
|
|
830
879
|
|
|
831
880
|
/** Properties of a Function. */
|
|
832
881
|
interface IFunction {
|
|
833
882
|
|
|
834
883
|
/** Function id */
|
|
835
|
-
id?: (number|Long);
|
|
884
|
+
id?: (number|Long|null);
|
|
836
885
|
|
|
837
886
|
/** Function name */
|
|
838
|
-
name?: (number|Long);
|
|
887
|
+
name?: (number|Long|null);
|
|
839
888
|
|
|
840
889
|
/** Function systemName */
|
|
841
|
-
systemName?: (number|Long);
|
|
890
|
+
systemName?: (number|Long|null);
|
|
842
891
|
|
|
843
892
|
/** Function filename */
|
|
844
|
-
filename?: (number|Long);
|
|
893
|
+
filename?: (number|Long|null);
|
|
845
894
|
|
|
846
895
|
/** Function startLine */
|
|
847
|
-
startLine?: (number|Long);
|
|
896
|
+
startLine?: (number|Long|null);
|
|
848
897
|
}
|
|
849
898
|
|
|
850
899
|
/** Represents a Function. */
|
|
851
|
-
class Function {
|
|
900
|
+
class Function implements IFunction {
|
|
852
901
|
|
|
853
902
|
/**
|
|
854
903
|
* Constructs a new Function.
|
|
@@ -940,6 +989,13 @@ export namespace perftools {
|
|
|
940
989
|
* @returns JSON object
|
|
941
990
|
*/
|
|
942
991
|
public toJSON(): { [k: string]: any };
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Gets the default type url for Function
|
|
995
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
996
|
+
* @returns The default type url
|
|
997
|
+
*/
|
|
998
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
943
999
|
}
|
|
944
1000
|
}
|
|
945
1001
|
}
|