@datadog/pprof 2.0.0-pre-9983949 → 2.0.0-pre-b7ce6e3

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.
Files changed (43) hide show
  1. package/out/src/cpu-profiler.d.ts +1 -1
  2. package/out/src/heap-profiler.d.ts +2 -2
  3. package/out/src/profile-encoder.d.ts +3 -3
  4. package/out/src/profile-encoder.js +2 -5
  5. package/out/src/profile-encoder.js.map +1 -1
  6. package/out/src/profile-serializer.d.ts +4 -4
  7. package/out/src/profile-serializer.js +35 -59
  8. package/out/src/profile-serializer.js.map +1 -1
  9. package/out/src/time-profiler.d.ts +2 -2
  10. package/package.json +3 -5
  11. package/prebuilds/darwin-arm64/node-102.node +0 -0
  12. package/prebuilds/darwin-arm64/node-108.node +0 -0
  13. package/prebuilds/darwin-arm64/node-111.node +0 -0
  14. package/prebuilds/darwin-arm64/node-72.node +0 -0
  15. package/prebuilds/darwin-arm64/node-79.node +0 -0
  16. package/prebuilds/darwin-arm64/node-83.node +0 -0
  17. package/prebuilds/darwin-arm64/node-88.node +0 -0
  18. package/prebuilds/darwin-arm64/node-93.node +0 -0
  19. package/prebuilds/darwin-x64/node-102.node +0 -0
  20. package/prebuilds/darwin-x64/node-108.node +0 -0
  21. package/prebuilds/darwin-x64/node-111.node +0 -0
  22. package/prebuilds/darwin-x64/node-72.node +0 -0
  23. package/prebuilds/darwin-x64/node-79.node +0 -0
  24. package/prebuilds/darwin-x64/node-83.node +0 -0
  25. package/prebuilds/darwin-x64/node-88.node +0 -0
  26. package/prebuilds/darwin-x64/node-93.node +0 -0
  27. package/prebuilds/win32-ia32/node-102.node +0 -0
  28. package/prebuilds/win32-ia32/node-72.node +0 -0
  29. package/prebuilds/win32-ia32/node-79.node +0 -0
  30. package/prebuilds/win32-ia32/node-83.node +0 -0
  31. package/prebuilds/win32-ia32/node-88.node +0 -0
  32. package/prebuilds/win32-ia32/node-93.node +0 -0
  33. package/prebuilds/win32-x64/node-102.node +0 -0
  34. package/prebuilds/win32-x64/node-108.node +0 -0
  35. package/prebuilds/win32-x64/node-111.node +0 -0
  36. package/prebuilds/win32-x64/node-72.node +0 -0
  37. package/prebuilds/win32-x64/node-79.node +0 -0
  38. package/prebuilds/win32-x64/node-83.node +0 -0
  39. package/prebuilds/win32-x64/node-88.node +0 -0
  40. package/prebuilds/win32-x64/node-93.node +0 -0
  41. package/proto/README.md +0 -3
  42. package/proto/profile.d.ts +0 -1001
  43. package/proto/profile.js +0 -3161
@@ -15,5 +15,5 @@
15
15
  */
16
16
  import { CpuProfiler as NativeCpuProfiler } from './cpu-profiler-bindings';
17
17
  export default class CpuProfiler extends NativeCpuProfiler {
18
- profile(): import("../../proto/profile").perftools.profiles.IProfile | undefined;
18
+ profile(): import("pprof-format").Profile | undefined;
19
19
  }
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { perftools } from '../../proto/profile';
16
+ import { Profile } from 'pprof-format';
17
17
  import { SourceMapper } from './sourcemapper/sourcemapper';
18
18
  import { AllocationProfileNode } from './v8-types';
19
19
  export declare function v8Profile(): AllocationProfileNode;
@@ -24,7 +24,7 @@ export declare function v8Profile(): AllocationProfileNode;
24
24
  * @param ignoreSamplePath
25
25
  * @param sourceMapper
26
26
  */
27
- export declare function profile(ignoreSamplePath?: string, sourceMapper?: SourceMapper): perftools.profiles.IProfile;
27
+ export declare function profile(ignoreSamplePath?: string, sourceMapper?: SourceMapper): Profile;
28
28
  /**
29
29
  * Starts heap profiling. If heap profiling has already been started with
30
30
  * the same parameters, this is a noop. If heap profiler has already been
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  /// <reference types="node" />
17
- import { perftools } from '../../proto/profile';
18
- export declare function encode(profile: perftools.profiles.IProfile): Promise<Buffer>;
19
- export declare function encodeSync(profile: perftools.profiles.IProfile): Buffer;
17
+ import { Profile } from 'pprof-format';
18
+ export declare function encode(profile: Profile): Promise<Buffer>;
19
+ export declare function encodeSync(profile: Profile): Buffer;
@@ -18,16 +18,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.encodeSync = exports.encode = void 0;
19
19
  const pify = require("pify");
20
20
  const zlib_1 = require("zlib");
21
- const profile_1 = require("../../proto/profile");
22
21
  const gzipPromise = pify(zlib_1.gzip);
23
22
  async function encode(profile) {
24
- const buffer = profile_1.perftools.profiles.Profile.encode(profile).finish();
25
- return gzipPromise(buffer);
23
+ return gzipPromise(profile.encode());
26
24
  }
27
25
  exports.encode = encode;
28
26
  function encodeSync(profile) {
29
- const buffer = profile_1.perftools.profiles.Profile.encode(profile).finish();
30
- return (0, zlib_1.gzipSync)(buffer);
27
+ return (0, zlib_1.gzipSync)(profile.encode());
31
28
  }
32
29
  exports.encodeSync = encodeSync;
33
30
  //# sourceMappingURL=profile-encoder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"profile-encoder.js","sourceRoot":"","sources":["../../ts/src/profile-encoder.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,6BAA6B;AAC7B,+BAAoC;AAEpC,iDAA8C;AAE9C,MAAM,WAAW,GAAG,IAAI,CAAC,WAAI,CAAC,CAAC;AAExB,KAAK,UAAU,MAAM,CAC1B,OAAoC;IAEpC,MAAM,MAAM,GAAG,mBAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IACnE,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;AAC7B,CAAC;AALD,wBAKC;AAED,SAAgB,UAAU,CAAC,OAAoC;IAC7D,MAAM,MAAM,GAAG,mBAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IACnE,OAAO,IAAA,eAAQ,EAAC,MAAM,CAAC,CAAC;AAC1B,CAAC;AAHD,gCAGC"}
1
+ {"version":3,"file":"profile-encoder.js","sourceRoot":"","sources":["../../ts/src/profile-encoder.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,6BAA6B;AAC7B,+BAAoC;AAIpC,MAAM,WAAW,GAAG,IAAI,CAAC,WAAI,CAAC,CAAC;AAExB,KAAK,UAAU,MAAM,CAAC,OAAgB;IAC3C,OAAO,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AACvC,CAAC;AAFD,wBAEC;AAED,SAAgB,UAAU,CAAC,OAAgB;IACzC,OAAO,IAAA,eAAQ,EAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AACpC,CAAC;AAFD,gCAEC"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { perftools } from '../../proto/profile';
16
+ import { Profile } from 'pprof-format';
17
17
  import { SourceMapper } from './sourcemapper/sourcemapper';
18
18
  import { AllocationProfileNode, CpuProfile, TimeProfile } from './v8-types';
19
19
  /**
@@ -23,7 +23,7 @@ import { AllocationProfileNode, CpuProfile, TimeProfile } from './v8-types';
23
23
  * @param prof - profile to be converted.
24
24
  * @param intervalMicros - average time (microseconds) between samples.
25
25
  */
26
- export declare function serializeTimeProfile(prof: TimeProfile, intervalMicros: number, sourceMapper?: SourceMapper): perftools.profiles.IProfile;
26
+ export declare function serializeTimeProfile(prof: TimeProfile, intervalMicros: number, sourceMapper?: SourceMapper): Profile;
27
27
  /**
28
28
  * Converts cpu profile into into a profile proto.
29
29
  * (https://github.com/google/pprof/blob/master/proto/profile.proto)
@@ -31,7 +31,7 @@ export declare function serializeTimeProfile(prof: TimeProfile, intervalMicros:
31
31
  * @param prof - profile to be converted.
32
32
  * @param intervalMicros - average time (microseconds) between samples.
33
33
  */
34
- export declare function serializeCpuProfile(prof: CpuProfile, intervalMicros: number, sourceMapper?: SourceMapper): perftools.profiles.IProfile;
34
+ export declare function serializeCpuProfile(prof: CpuProfile, intervalMicros: number, sourceMapper?: SourceMapper): Profile;
35
35
  /**
36
36
  * Converts v8 heap profile into into a profile proto.
37
37
  * (https://github.com/google/pprof/blob/master/proto/profile.proto)
@@ -42,4 +42,4 @@ export declare function serializeCpuProfile(prof: CpuProfile, intervalMicros: nu
42
42
  * nanoseconds.
43
43
  * @param intervalBytes - bytes allocated between samples.
44
44
  */
45
- export declare function serializeHeapProfile(prof: AllocationProfileNode, startTimeNanos: number, intervalBytes: number, ignoreSamplesPath?: string, sourceMapper?: SourceMapper): perftools.profiles.IProfile;
45
+ export declare function serializeHeapProfile(prof: AllocationProfileNode, startTimeNanos: number, intervalBytes: number, ignoreSamplesPath?: string, sourceMapper?: SourceMapper): Profile;
@@ -16,36 +16,12 @@
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.serializeHeapProfile = exports.serializeCpuProfile = exports.serializeTimeProfile = void 0;
19
- const profile_1 = require("../../proto/profile");
19
+ const pprof_format_1 = require("pprof-format");
20
20
  function isGeneratedLocation(location) {
21
21
  return (location.column !== undefined &&
22
22
  location.line !== undefined &&
23
23
  location.line > 0);
24
24
  }
25
- /**
26
- * Used to build string table and access strings and their ids within the table
27
- * when serializing a profile.
28
- */
29
- class StringTable {
30
- constructor() {
31
- this.strings = [];
32
- this.stringsMap = new Map();
33
- this.getIndexOrAdd('');
34
- }
35
- /**
36
- * @return index of str within the table. Also adds str to string table if
37
- * str is not in the table already.
38
- */
39
- getIndexOrAdd(str) {
40
- let idx = this.stringsMap.get(str);
41
- if (idx !== undefined) {
42
- return idx;
43
- }
44
- idx = this.strings.push(str) - 1;
45
- this.stringsMap.set(str, idx);
46
- return idx;
47
- }
48
- }
49
25
  /**
50
26
  * Takes v8 profile and populates sample, location, and function fields of
51
27
  * profile.proto.
@@ -87,7 +63,7 @@ function serialize(profile, root, appendToSamples, stringTable, ignoreSamplesPat
87
63
  profile.sample = samples;
88
64
  profile.location = locations;
89
65
  profile.function = functions;
90
- profile.stringTable = stringTable.strings;
66
+ profile.stringTable = stringTable;
91
67
  function getLocation(node, sourceMapper) {
92
68
  let profLoc = {
93
69
  file: node.scriptName || '',
@@ -109,12 +85,12 @@ function serialize(profile, root, appendToSamples, stringTable, ignoreSamplesPat
109
85
  id = locations.length + 1;
110
86
  locationIdMap.set(keyStr, id);
111
87
  const line = getLine(node.scriptId, profLoc.file, profLoc.name, profLoc.line);
112
- const location = new profile_1.perftools.profiles.Location({ id, line: [line] });
88
+ const location = new pprof_format_1.Location({ id, line: [line] });
113
89
  locations.push(location);
114
90
  return location;
115
91
  }
116
92
  function getLine(scriptId, scriptName, name, line) {
117
- return new profile_1.perftools.profiles.Line({
93
+ return new pprof_format_1.Line({
118
94
  functionId: getFunction(scriptId, scriptName, name).id,
119
95
  line,
120
96
  });
@@ -128,12 +104,12 @@ function serialize(profile, root, appendToSamples, stringTable, ignoreSamplesPat
128
104
  }
129
105
  id = functions.length + 1;
130
106
  functionIdMap.set(keyStr, id);
131
- const nameId = stringTable.getIndexOrAdd(name || '(anonymous)');
132
- const f = new profile_1.perftools.profiles.Function({
107
+ const nameId = stringTable.dedup(name || '(anonymous)');
108
+ const f = new pprof_format_1.Function({
133
109
  id,
134
110
  name: nameId,
135
111
  systemName: nameId,
136
- filename: stringTable.getIndexOrAdd(scriptName || ''),
112
+ filename: stringTable.dedup(scriptName || ''),
137
113
  });
138
114
  functions.push(f);
139
115
  return f;
@@ -144,9 +120,9 @@ function serialize(profile, root, appendToSamples, stringTable, ignoreSamplesPat
144
120
  * adds strings used in this value type to the table.
145
121
  */
146
122
  function createSampleCountValueType(table) {
147
- return new profile_1.perftools.profiles.ValueType({
148
- type: table.getIndexOrAdd('sample'),
149
- unit: table.getIndexOrAdd('count'),
123
+ return new pprof_format_1.ValueType({
124
+ type: table.dedup('sample'),
125
+ unit: table.dedup('count'),
150
126
  });
151
127
  }
152
128
  /**
@@ -154,9 +130,9 @@ function createSampleCountValueType(table) {
154
130
  * adds strings used in this value type to the table.
155
131
  */
156
132
  function createTimeValueType(table) {
157
- return new profile_1.perftools.profiles.ValueType({
158
- type: table.getIndexOrAdd('wall'),
159
- unit: table.getIndexOrAdd('nanoseconds'),
133
+ return new pprof_format_1.ValueType({
134
+ type: table.dedup('wall'),
135
+ unit: table.dedup('nanoseconds'),
160
136
  });
161
137
  }
162
138
  /**
@@ -164,9 +140,9 @@ function createTimeValueType(table) {
164
140
  * adds strings used in this value type to the table.
165
141
  */
166
142
  function createCpuValueType(table) {
167
- return new profile_1.perftools.profiles.ValueType({
168
- type: table.getIndexOrAdd('cpu'),
169
- unit: table.getIndexOrAdd('nanoseconds'),
143
+ return new pprof_format_1.ValueType({
144
+ type: table.dedup('cpu'),
145
+ unit: table.dedup('nanoseconds'),
170
146
  });
171
147
  }
172
148
  /**
@@ -174,9 +150,9 @@ function createCpuValueType(table) {
174
150
  * adds strings used in this value type to the table.
175
151
  */
176
152
  function createObjectCountValueType(table) {
177
- return new profile_1.perftools.profiles.ValueType({
178
- type: table.getIndexOrAdd('objects'),
179
- unit: table.getIndexOrAdd('count'),
153
+ return new pprof_format_1.ValueType({
154
+ type: table.dedup('objects'),
155
+ unit: table.dedup('count'),
180
156
  });
181
157
  }
182
158
  /**
@@ -184,9 +160,9 @@ function createObjectCountValueType(table) {
184
160
  * adds strings used in this value type to the table.
185
161
  */
186
162
  function createAllocationValueType(table) {
187
- return new profile_1.perftools.profiles.ValueType({
188
- type: table.getIndexOrAdd('space'),
189
- unit: table.getIndexOrAdd('bytes'),
163
+ return new pprof_format_1.ValueType({
164
+ type: table.dedup('space'),
165
+ unit: table.dedup('bytes'),
190
166
  });
191
167
  }
192
168
  /**
@@ -200,14 +176,14 @@ function serializeTimeProfile(prof, intervalMicros, sourceMapper) {
200
176
  const intervalNanos = intervalMicros * 1000;
201
177
  const appendTimeEntryToSamples = (entry, samples) => {
202
178
  if (entry.node.hitCount > 0) {
203
- const sample = new profile_1.perftools.profiles.Sample({
179
+ const sample = new pprof_format_1.Sample({
204
180
  locationId: entry.stack,
205
181
  value: [entry.node.hitCount, entry.node.hitCount * intervalNanos],
206
182
  });
207
183
  samples.push(sample);
208
184
  }
209
185
  };
210
- const stringTable = new StringTable();
186
+ const stringTable = new pprof_format_1.StringTable();
211
187
  const sampleValueType = createSampleCountValueType(stringTable);
212
188
  const timeValueType = createTimeValueType(stringTable);
213
189
  const profile = {
@@ -218,18 +194,18 @@ function serializeTimeProfile(prof, intervalMicros, sourceMapper) {
218
194
  period: intervalNanos,
219
195
  };
220
196
  serialize(profile, prof.topDownRoot, appendTimeEntryToSamples, stringTable, undefined, sourceMapper);
221
- return profile;
197
+ return new pprof_format_1.Profile(profile);
222
198
  }
223
199
  exports.serializeTimeProfile = serializeTimeProfile;
224
200
  function buildLabels(labelSet, stringTable) {
225
201
  const labels = [];
226
202
  for (const [key, value] of Object.entries(labelSet)) {
227
203
  if (typeof value === 'number' || typeof value === 'string') {
228
- const label = new profile_1.perftools.profiles.Label({
229
- key: stringTable.getIndexOrAdd(key),
204
+ const label = new pprof_format_1.Label({
205
+ key: stringTable.dedup(key),
230
206
  num: typeof value === 'number' ? value : undefined,
231
207
  str: typeof value === 'string'
232
- ? stringTable.getIndexOrAdd(value)
208
+ ? stringTable.dedup(value)
233
209
  : undefined,
234
210
  });
235
211
  labels.push(label);
@@ -248,7 +224,7 @@ function serializeCpuProfile(prof, intervalMicros, sourceMapper) {
248
224
  const intervalNanos = intervalMicros * 1000;
249
225
  const appendCpuEntryToSamples = (entry, samples) => {
250
226
  for (const labelCpu of entry.node.labelSets) {
251
- const sample = new profile_1.perftools.profiles.Sample({
227
+ const sample = new pprof_format_1.Sample({
252
228
  locationId: entry.stack,
253
229
  value: [1, labelCpu.cpuTime],
254
230
  label: buildLabels(labelCpu.labels, stringTable),
@@ -256,14 +232,14 @@ function serializeCpuProfile(prof, intervalMicros, sourceMapper) {
256
232
  samples.push(sample);
257
233
  }
258
234
  if (entry.node.hitCount > 0) {
259
- const sample = new profile_1.perftools.profiles.Sample({
235
+ const sample = new pprof_format_1.Sample({
260
236
  locationId: entry.stack,
261
237
  value: [entry.node.hitCount, entry.node.cpuTime],
262
238
  });
263
239
  samples.push(sample);
264
240
  }
265
241
  };
266
- const stringTable = new StringTable();
242
+ const stringTable = new pprof_format_1.StringTable();
267
243
  const sampleValueType = createSampleCountValueType(stringTable);
268
244
  // const wallValueType = createTimeValueType(stringTable);
269
245
  const cpuValueType = createCpuValueType(stringTable);
@@ -275,7 +251,7 @@ function serializeCpuProfile(prof, intervalMicros, sourceMapper) {
275
251
  period: intervalNanos,
276
252
  };
277
253
  serialize(profile, prof.topDownRoot, appendCpuEntryToSamples, stringTable, undefined, sourceMapper);
278
- return profile;
254
+ return new pprof_format_1.Profile(profile);
279
255
  }
280
256
  exports.serializeCpuProfile = serializeCpuProfile;
281
257
  /**
@@ -292,7 +268,7 @@ function serializeHeapProfile(prof, startTimeNanos, intervalBytes, ignoreSamples
292
268
  const appendHeapEntryToSamples = (entry, samples) => {
293
269
  if (entry.node.allocations.length > 0) {
294
270
  for (const alloc of entry.node.allocations) {
295
- const sample = new profile_1.perftools.profiles.Sample({
271
+ const sample = new pprof_format_1.Sample({
296
272
  locationId: entry.stack,
297
273
  value: [alloc.count, alloc.sizeBytes * alloc.count],
298
274
  // TODO: add tag for allocation size
@@ -301,7 +277,7 @@ function serializeHeapProfile(prof, startTimeNanos, intervalBytes, ignoreSamples
301
277
  }
302
278
  }
303
279
  };
304
- const stringTable = new StringTable();
280
+ const stringTable = new pprof_format_1.StringTable();
305
281
  const sampleValueType = createObjectCountValueType(stringTable);
306
282
  const allocationValueType = createAllocationValueType(stringTable);
307
283
  const profile = {
@@ -311,7 +287,7 @@ function serializeHeapProfile(prof, startTimeNanos, intervalBytes, ignoreSamples
311
287
  period: intervalBytes,
312
288
  };
313
289
  serialize(profile, prof, appendHeapEntryToSamples, stringTable, ignoreSamplesPath, sourceMapper);
314
- return profile;
290
+ return new pprof_format_1.Profile(profile);
315
291
  }
316
292
  exports.serializeHeapProfile = serializeHeapProfile;
317
293
  //# sourceMappingURL=profile-serializer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"profile-serializer.js","sourceRoot":"","sources":["../../ts/src/profile-serializer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,iDAA8C;AAsC9C,SAAS,mBAAmB,CAC1B,QAAwB;IAExB,OAAO,CACL,QAAQ,CAAC,MAAM,KAAK,SAAS;QAC7B,QAAQ,CAAC,IAAI,KAAK,SAAS;QAC3B,QAAQ,CAAC,IAAI,GAAG,CAAC,CAClB,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,WAAW;IAIf;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,EAAkB,CAAC;QAC5C,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IACzB,CAAC;IAED;;;OAGG;IACH,aAAa,CAAC,GAAW;QACvB,IAAI,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnC,IAAI,GAAG,KAAK,SAAS,EAAE;YACrB,OAAO,GAAG,CAAC;SACZ;QACD,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC9B,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAED;;;;;;;;;;;GAWG;AACH,SAAS,SAAS,CAChB,OAAoC,EACpC,IAAO,EACP,eAAwC,EACxC,WAAwB,EACxB,iBAA0B,EAC1B,YAA2B;IAE3B,MAAM,OAAO,GAAgC,EAAE,CAAC;IAChD,MAAM,SAAS,GAAkC,EAAE,CAAC;IACpD,MAAM,SAAS,GAAkC,EAAE,CAAC;IACpD,MAAM,aAAa,GAAG,IAAI,GAAG,EAAkB,CAAC;IAChD,MAAM,aAAa,GAAG,IAA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,sBAAO,CAAC,OAAO,CAAC,CAAC;AAC9B,CAAC;AA3CD,oDA2CC"}
@@ -31,6 +31,6 @@ export interface TimeProfilerOptions {
31
31
  */
32
32
  lineNumbers?: boolean;
33
33
  }
34
- export declare function profile(options: TimeProfilerOptions): Promise<import("../../proto/profile").perftools.profiles.IProfile>;
35
- export declare function start(intervalMicros?: Microseconds, name?: string, sourceMapper?: SourceMapper, lineNumbers?: boolean): (restart?: boolean) => import("../../proto/profile").perftools.profiles.IProfile;
34
+ export declare function profile(options: TimeProfilerOptions): Promise<import("pprof-format").Profile>;
35
+ export declare function start(intervalMicros?: Microseconds, name?: string, sourceMapper?: SourceMapper, lineNumbers?: boolean): (restart?: boolean) => import("pprof-format").Profile;
36
36
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/pprof",
3
- "version": "2.0.0-pre-9983949",
3
+ "version": "2.0.0-pre-b7ce6e3",
4
4
  "description": "pprof support for Node.js",
5
5
  "repository": "datadog/pprof-nodejs",
6
6
  "main": "out/src/index.js",
@@ -18,9 +18,7 @@
18
18
  "prebuild": "node scripts/prebuild.js",
19
19
  "prebuilds": "node scripts/prebuilds.js",
20
20
  "prepare": "npm run compile",
21
- "pretest": "npm run compile && npm run rebuild",
22
- "proto": "npm run proto:profile",
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"
21
+ "pretest": "npm run compile && npm run rebuild"
24
22
  },
25
23
  "author": {
26
24
  "name": "Google Inc."
@@ -31,7 +29,7 @@
31
29
  "node-gyp-build": "^3.9.0",
32
30
  "p-limit": "^3.1.0",
33
31
  "pify": "^5.0.0",
34
- "protobufjs": "^7.0.0",
32
+ "pprof-format": "^2.0.5",
35
33
  "source-map": "^0.7.3",
36
34
  "split": "^1.0.1"
37
35
  },
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/README.md DELETED
@@ -1,3 +0,0 @@
1
- Files in this directory are generated files. Do not edit.
2
-
3
- To regenerate, use the `proto:*` run scripts in package.json.