@datadog/pprof 2.2.2 → 2.2.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.
Files changed (43) hide show
  1. package/out/src/index.d.ts +1 -0
  2. package/out/src/index.js +3 -1
  3. package/out/src/index.js.map +1 -1
  4. package/out/src/logger.d.ts +18 -0
  5. package/out/src/logger.js +36 -0
  6. package/out/src/logger.js.map +1 -0
  7. package/out/src/sourcemapper/sourcemapper.d.ts +3 -2
  8. package/out/src/sourcemapper/sourcemapper.js +65 -37
  9. package/out/src/sourcemapper/sourcemapper.js.map +1 -1
  10. package/package.json +2 -2
  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-115.node +0 -0
  15. package/prebuilds/darwin-arm64/node-72.node +0 -0
  16. package/prebuilds/darwin-arm64/node-79.node +0 -0
  17. package/prebuilds/darwin-arm64/node-83.node +0 -0
  18. package/prebuilds/darwin-arm64/node-88.node +0 -0
  19. package/prebuilds/darwin-arm64/node-93.node +0 -0
  20. package/prebuilds/darwin-x64/node-102.node +0 -0
  21. package/prebuilds/darwin-x64/node-108.node +0 -0
  22. package/prebuilds/darwin-x64/node-111.node +0 -0
  23. package/prebuilds/darwin-x64/node-115.node +0 -0
  24. package/prebuilds/darwin-x64/node-72.node +0 -0
  25. package/prebuilds/darwin-x64/node-79.node +0 -0
  26. package/prebuilds/darwin-x64/node-83.node +0 -0
  27. package/prebuilds/darwin-x64/node-88.node +0 -0
  28. package/prebuilds/darwin-x64/node-93.node +0 -0
  29. package/prebuilds/win32-ia32/node-102.node +0 -0
  30. package/prebuilds/win32-ia32/node-72.node +0 -0
  31. package/prebuilds/win32-ia32/node-79.node +0 -0
  32. package/prebuilds/win32-ia32/node-83.node +0 -0
  33. package/prebuilds/win32-ia32/node-88.node +0 -0
  34. package/prebuilds/win32-ia32/node-93.node +0 -0
  35. package/prebuilds/win32-x64/node-102.node +0 -0
  36. package/prebuilds/win32-x64/node-108.node +0 -0
  37. package/prebuilds/win32-x64/node-111.node +0 -0
  38. package/prebuilds/win32-x64/node-115.node +0 -0
  39. package/prebuilds/win32-x64/node-72.node +0 -0
  40. package/prebuilds/win32-x64/node-79.node +0 -0
  41. package/prebuilds/win32-x64/node-83.node +0 -0
  42. package/prebuilds/win32-x64/node-88.node +0 -0
  43. package/prebuilds/win32-x64/node-93.node +0 -0
@@ -4,6 +4,7 @@ import * as timeProfiler from './time-profiler';
4
4
  export { AllocationProfileNode, TimeProfileNode, ProfileNode } from './v8-types';
5
5
  export { encode, encodeSync } from './profile-encoder';
6
6
  export { SourceMapper } from './sourcemapper/sourcemapper';
7
+ export { setLogger } from './logger';
7
8
  export declare const CpuProfiler: typeof cpuProfiler;
8
9
  export declare const time: {
9
10
  profile: typeof timeProfiler.profile;
package/out/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.heap = exports.time = exports.CpuProfiler = exports.SourceMapper = exports.encodeSync = exports.encode = void 0;
3
+ exports.heap = exports.time = exports.CpuProfiler = exports.setLogger = exports.SourceMapper = exports.encodeSync = exports.encode = void 0;
4
4
  /**
5
5
  * Copyright 2019 Google Inc. All Rights Reserved.
6
6
  *
@@ -26,6 +26,8 @@ Object.defineProperty(exports, "encode", { enumerable: true, get: function () {
26
26
  Object.defineProperty(exports, "encodeSync", { enumerable: true, get: function () { return profile_encoder_2.encodeSync; } });
27
27
  var sourcemapper_1 = require("./sourcemapper/sourcemapper");
28
28
  Object.defineProperty(exports, "SourceMapper", { enumerable: true, get: function () { return sourcemapper_1.SourceMapper; } });
29
+ var logger_1 = require("./logger");
30
+ Object.defineProperty(exports, "setLogger", { enumerable: true, get: function () { return logger_1.setLogger; } });
29
31
  exports.CpuProfiler = cpu_profiler_1.default;
30
32
  exports.time = {
31
33
  profile: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 export interface Logger {
2
+ error(...args: Array<{}>): void;
3
+ trace(...args: Array<{}>): void;
4
+ debug(...args: Array<{}>): void;
5
+ info(...args: Array<{}>): void;
6
+ warn(...args: Array<{}>): void;
7
+ fatal(...args: Array<{}>): void;
8
+ }
9
+ export declare class NullLogger implements Logger {
10
+ info(...args: Array<{}>): void;
11
+ error(...args: Array<{}>): void;
12
+ trace(...args: Array<{}>): void;
13
+ warn(...args: Array<{}>): void;
14
+ fatal(...args: Array<{}>): void;
15
+ debug(...args: Array<{}>): void;
16
+ }
17
+ export declare let logger: NullLogger;
18
+ export declare function setLogger(newLogger: Logger): void;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setLogger = exports.logger = exports.NullLogger = void 0;
4
+ class NullLogger {
5
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
6
+ info(...args) {
7
+ return;
8
+ }
9
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
+ error(...args) {
11
+ return;
12
+ }
13
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
+ trace(...args) {
15
+ return;
16
+ }
17
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
18
+ warn(...args) {
19
+ return;
20
+ }
21
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
22
+ fatal(...args) {
23
+ return;
24
+ }
25
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
26
+ debug(...args) {
27
+ return;
28
+ }
29
+ }
30
+ exports.NullLogger = NullLogger;
31
+ exports.logger = new NullLogger();
32
+ function setLogger(newLogger) {
33
+ exports.logger = newLogger;
34
+ }
35
+ exports.setLogger = setLogger;
36
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../ts/src/logger.ts"],"names":[],"mappings":";;;AASA,MAAa,UAAU;IACrB,6DAA6D;IAC7D,IAAI,CAAC,GAAG,IAAe;QACrB,OAAO;IACT,CAAC;IACD,6DAA6D;IAC7D,KAAK,CAAC,GAAG,IAAe;QACtB,OAAO;IACT,CAAC;IACD,6DAA6D;IAC7D,KAAK,CAAC,GAAG,IAAe;QACtB,OAAO;IACT,CAAC;IACD,6DAA6D;IAC7D,IAAI,CAAC,GAAG,IAAe;QACrB,OAAO;IACT,CAAC;IACD,6DAA6D;IAC7D,KAAK,CAAC,GAAG,IAAe;QACtB,OAAO;IACT,CAAC;IACD,6DAA6D;IAC7D,KAAK,CAAC,GAAG,IAAe;QACtB,OAAO;IACT,CAAC;CACF;AAzBD,gCAyBC;AAEU,QAAA,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;AAErC,SAAgB,SAAS,CAAC,SAAiB;IACzC,cAAM,GAAG,SAAS,CAAC;AACrB,CAAC;AAFD,8BAEC"}
@@ -32,7 +32,8 @@ export interface SourceLocation {
32
32
  }
33
33
  export declare class SourceMapper {
34
34
  infoMap: Map<string, MapInfoCompiled>;
35
- static create(searchDirs: string[]): Promise<SourceMapper>;
35
+ debug: boolean;
36
+ static create(searchDirs: string[], debug?: boolean): Promise<SourceMapper>;
36
37
  /**
37
38
  * @param {Array.<string>} sourceMapPaths An array of paths to .map source map
38
39
  * files that should be processed. The paths should be relative to the
@@ -41,7 +42,7 @@ export declare class SourceMapper {
41
42
  * processing the given source map files
42
43
  * @constructor
43
44
  */
44
- constructor();
45
+ constructor(debug?: boolean);
45
46
  /**
46
47
  * Used to get the information about the transpiled file from a given input
47
48
  * source file provided there isn't any ambiguity with associating the input
@@ -22,29 +22,15 @@ exports.SourceMapper = void 0;
22
22
  // code to generated code.
23
23
  const fs = require("fs");
24
24
  const path = require("path");
25
- // Apparently the source-map module feature-detects the browser by checking
26
- // if the fetch function exists. Because it now exists in Node.js v18, the
27
- // source-map module thinks it's running in a browser and doesn't work.
28
- const desc = Object.getOwnPropertyDescriptor(globalThis, 'fetch');
29
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
30
- // @ts-ignore
31
- delete globalThis.fetch;
32
25
  const sourceMap = require("source-map");
33
- if (desc) {
34
- Object.defineProperty(globalThis, 'fetch', desc);
35
- }
26
+ const logger_1 = require("../logger");
36
27
  const pify = require('pify');
37
28
  const pLimit = require('p-limit');
38
29
  const readFile = pify(fs.readFile);
39
30
  const CONCURRENCY = 10;
40
31
  const MAP_EXT = '.map';
41
- const debug = process.env.DD_PROFILING_DEBUG_SOURCE_MAPS
42
- ? (msg) => {
43
- console.log(typeof msg === 'function' ? msg() : msg);
44
- }
45
- : () => { };
46
32
  function error(msg) {
47
- debug(`Error: ${msg}`);
33
+ logger_1.logger.debug(`Error: ${msg}`);
48
34
  return new Error(msg);
49
35
  }
50
36
  /**
@@ -54,7 +40,7 @@ function error(msg) {
54
40
  * path should be relative to the process's current working directory
55
41
  * @private
56
42
  */
57
- async function processSourceMap(infoMap, mapPath) {
43
+ async function processSourceMap(infoMap, mapPath, debug) {
58
44
  // this handles the case when the path is undefined, null, or
59
45
  // the empty string
60
46
  if (!mapPath || !mapPath.endsWith(MAP_EXT)) {
@@ -85,23 +71,56 @@ async function processSourceMap(infoMap, mapPath) {
85
71
  ': ' +
86
72
  e);
87
73
  }
88
- /*
89
- * If the source map file defines a "file" attribute, use it as
74
+ /* If the source map file defines a "file" attribute, use it as
90
75
  * the output file where the path is relative to the directory
91
76
  * containing the map file. Otherwise, use the name of the output
92
77
  * file (with the .map extension removed) as the output file.
78
+
79
+ * With nextjs/webpack, when there are subdirectories in `pages` directory,
80
+ * the generated source maps do not reference correctly the generated files
81
+ * in their `file` property.
82
+ * For example if the generated file / source maps have paths:
83
+ * <root>/pages/sub/foo.js(.map)
84
+ * foo.js.map will have ../pages/sub/foo.js as `file` property instead of
85
+ * ../../pages/sub/foo.js
86
+ * To workaround this, check first if file referenced in `file` property
87
+ * exists and if it does not, check if generated file exists alongside the
88
+ * source map file.
93
89
  */
94
90
  const dir = path.dirname(mapPath);
95
- const generatedBase = consumer.file
96
- ? consumer.file
97
- : path.basename(mapPath, MAP_EXT);
98
- const generatedPath = path.resolve(dir, generatedBase);
99
- infoMap.set(generatedPath, { mapFileDir: dir, mapConsumer: consumer });
100
- debug(`Loaded source map for ${generatedPath} => ${mapPath}`);
91
+ const generatedPathCandidates = [];
92
+ if (consumer.file) {
93
+ generatedPathCandidates.push(path.resolve(dir, consumer.file));
94
+ }
95
+ const samePath = path.resolve(dir, path.basename(mapPath, MAP_EXT));
96
+ if (generatedPathCandidates.length === 0 ||
97
+ generatedPathCandidates[0] !== samePath) {
98
+ generatedPathCandidates.push(samePath);
99
+ }
100
+ for (const generatedPath of generatedPathCandidates) {
101
+ try {
102
+ await fs.promises.access(generatedPath, fs.constants.F_OK);
103
+ infoMap.set(generatedPath, { mapFileDir: dir, mapConsumer: consumer });
104
+ if (debug) {
105
+ logger_1.logger.debug(`Loaded source map for ${generatedPath} => ${mapPath}`);
106
+ }
107
+ return;
108
+ }
109
+ catch (err) {
110
+ if (debug) {
111
+ logger_1.logger.debug(`Generated path ${generatedPath} does not exist`);
112
+ }
113
+ }
114
+ }
115
+ if (debug) {
116
+ logger_1.logger.debug(`Unable to find generated file for ${mapPath}`);
117
+ }
101
118
  }
102
119
  class SourceMapper {
103
- static async create(searchDirs) {
104
- debug(() => `Looking for source map files in dirs: [${searchDirs.join(', ')}]`);
120
+ static async create(searchDirs, debug = false) {
121
+ if (debug) {
122
+ logger_1.logger.debug(`Looking for source map files in dirs: [${searchDirs.join(', ')}]`);
123
+ }
105
124
  const mapFiles = [];
106
125
  for (const dir of searchDirs) {
107
126
  try {
@@ -114,8 +133,10 @@ class SourceMapper {
114
133
  throw error(`failed to get source maps from ${dir}: ${e}`);
115
134
  }
116
135
  }
117
- debug(() => `Found source map files: [${mapFiles.join(', ')}]`);
118
- return createFromMapFiles(mapFiles);
136
+ if (debug) {
137
+ logger_1.logger.debug(`Found source map files: [${mapFiles.join(', ')}]`);
138
+ }
139
+ return createFromMapFiles(mapFiles, debug);
119
140
  }
120
141
  /**
121
142
  * @param {Array.<string>} sourceMapPaths An array of paths to .map source map
@@ -125,8 +146,9 @@ class SourceMapper {
125
146
  * processing the given source map files
126
147
  * @constructor
127
148
  */
128
- constructor() {
149
+ constructor(debug = false) {
129
150
  this.infoMap = new Map();
151
+ this.debug = debug;
130
152
  }
131
153
  /**
132
154
  * Used to get the information about the transpiled file from a given input
@@ -184,7 +206,9 @@ class SourceMapper {
184
206
  const inputPath = path.normalize(location.file);
185
207
  const entry = this.getMappingInfo(inputPath);
186
208
  if (entry === null) {
187
- debug(() => `Source map lookup failed: no map found for ${location.file} (normalized: ${inputPath})`);
209
+ if (this.debug) {
210
+ logger_1.logger.debug(`Source map lookup failed: no map found for ${location.file} (normalized: ${inputPath})`);
211
+ }
188
212
  return location;
189
213
  }
190
214
  const generatedPos = {
@@ -195,7 +219,9 @@ class SourceMapper {
195
219
  const consumer = entry.mapConsumer;
196
220
  const pos = consumer.originalPositionFor(generatedPos);
197
221
  if (pos.source === null) {
198
- debug(() => `Source map lookup failed for ${location.name}(${location.file}:${location.line}:${location.column})`);
222
+ if (this.debug) {
223
+ logger_1.logger.debug(`Source map lookup failed for ${location.name}(${location.file}:${location.line}:${location.column})`);
224
+ }
199
225
  return location;
200
226
  }
201
227
  const loc = {
@@ -204,15 +230,17 @@ class SourceMapper {
204
230
  name: pos.name || location.name,
205
231
  column: pos.column === null ? undefined : pos.column + 1, // convert column back to 1-based
206
232
  };
207
- debug(() => `Source map lookup succeeded for ${location.name}(${location.file}:${location.line}:${location.column}) => ${loc.name}(${loc.file}:${loc.line}:${loc.column})`);
233
+ if (this.debug) {
234
+ logger_1.logger.debug(`Source map lookup succeeded for ${location.name}(${location.file}:${location.line}:${location.column}) => ${loc.name}(${loc.file}:${loc.line}:${loc.column})`);
235
+ }
208
236
  return loc;
209
237
  }
210
238
  }
211
239
  exports.SourceMapper = SourceMapper;
212
- async function createFromMapFiles(mapFiles) {
240
+ async function createFromMapFiles(mapFiles, debug) {
213
241
  const limit = pLimit(CONCURRENCY);
214
- const mapper = new SourceMapper();
215
- const promises = mapFiles.map(mapPath => limit(() => processSourceMap(mapper.infoMap, mapPath)));
242
+ const mapper = new SourceMapper(debug);
243
+ const promises = mapFiles.map(mapPath => limit(() => processSourceMap(mapper.infoMap, mapPath, debug)));
216
244
  try {
217
245
  await Promise.all(promises);
218
246
  }
@@ -252,7 +280,7 @@ directoryFilter = (root, dirname) => true) {
252
280
  throw error;
253
281
  }
254
282
  else {
255
- debug(() => `Non fatal error: ${error}`);
283
+ logger_1.logger.debug(() => `Non fatal error: ${error}`);
256
284
  }
257
285
  }
258
286
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sourcemapper.js","sourceRoot":"","sources":["../../../ts/src/sourcemapper/sourcemapper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,mEAAmE;AACnE,8HAA8H;AAC9H,8EAA8E;AAC9E,0BAA0B;AAE1B,yBAAyB;AACzB,6BAA6B;AAE7B,2EAA2E;AAC3E,0EAA0E;AAC1E,uEAAuE;AACvE,MAAM,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAClE,6DAA6D;AAC7D,aAAa;AACb,OAAO,UAAU,CAAC,KAAK,CAAC;AACxB,wCAAwC;AACxC,IAAI,IAAI,EAAE;IACR,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;CAClD;AAED,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;AAEnC,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,OAAO,GAAG,MAAM,CAAC;AAEvB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,8BAA8B;IACtD,CAAC,CAAC,CAAC,GAAsB,EAAE,EAAE;Q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C,GAAG,CAAC,CAAC;AAC5B,CAAC;AAED,KAAK,UAAU,WAAW,CAAC,OAAe;IACxC,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,IAAI,CAC5B,OAAO,EACP,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,EACxC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAChB,IAAI,KAAK,OAAO,IAAI,OAAO,KAAK,MAAM,IAAI,OAAO,KAAK,cAAc,CACvE,EAAE;QACD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;KAC9C;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/pprof",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "pprof support for Node.js",
5
5
  "repository": "datadog/pprof-nodejs",
6
6
  "main": "out/src/index.js",
@@ -19,7 +19,7 @@
19
19
  "prebuild": "node scripts/prebuild.js",
20
20
  "prebuilds": "node scripts/prebuilds.js",
21
21
  "prepare": "npm run compile && npm run rebuild",
22
- "pretest": "npm run compile && npm run rebuild"
22
+ "pretest": "npm run compile"
23
23
  },
24
24
  "author": {
25
25
  "name": "Google Inc."
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
Binary file
Binary file