@datadog/pprof
Advanced tools
Comparing version 3.0.0-pre-a1c4687 to 3.0.0-pre-a35f774
@@ -20,3 +20,3 @@ /** | ||
export declare function getAllocationProfile(): AllocationProfileNode; | ||
export declare type NearHeapLimitCallback = (profile: AllocationProfileNode) => void; | ||
export type NearHeapLimitCallback = (profile: AllocationProfileNode) => void; | ||
export declare function monitorOutOfMemory(heapLimitExtensionSize: number, maxHeapLimitExtensionCount: number, dumpHeapProfileOnSdterr: boolean, exportCommand: Array<String> | undefined, callback: NearHeapLimitCallback | undefined, callbackMode: number): void; |
@@ -39,3 +39,3 @@ /** | ||
export declare function stop(): void; | ||
export declare type NearHeapLimitCallback = (profile: Profile) => void; | ||
export type NearHeapLimitCallback = (profile: Profile) => void; | ||
export declare const CallbackMode: { | ||
@@ -42,0 +42,0 @@ Async: number; |
@@ -93,13 +93,2 @@ "use strict"; | ||
class SourceMapper { | ||
/** | ||
* @param {Array.<string>} sourceMapPaths An array of paths to .map source map | ||
* files that should be processed. The paths should be relative to the | ||
* current process's current working directory | ||
* @param {Logger} logger A logger that reports errors that occurred while | ||
* processing the given source map files | ||
* @constructor | ||
*/ | ||
constructor() { | ||
this.infoMap = new Map(); | ||
} | ||
static async create(searchDirs) { | ||
@@ -121,2 +110,13 @@ const mapFiles = []; | ||
/** | ||
* @param {Array.<string>} sourceMapPaths An array of paths to .map source map | ||
* files that should be processed. The paths should be relative to the | ||
* current process's current working directory | ||
* @param {Logger} logger A logger that reports errors that occurred while | ||
* processing the given source map files | ||
* @constructor | ||
*/ | ||
constructor() { | ||
this.infoMap = new Map(); | ||
} | ||
/** | ||
* Used to get the information about the transpiled file from a given input | ||
@@ -123,0 +123,0 @@ * source file provided there isn't any ambiguity with associating the input |
@@ -17,4 +17,4 @@ /** | ||
import { SourceMapper } from './sourcemapper/sourcemapper'; | ||
declare type Microseconds = number; | ||
declare type Milliseconds = number; | ||
type Microseconds = number; | ||
type Milliseconds = number; | ||
export interface TimeProfilerOptions { | ||
@@ -21,0 +21,0 @@ /** time in milliseconds for which to collect profile. */ |
{ | ||
"name": "@datadog/pprof", | ||
"version": "3.0.0-pre-a1c4687", | ||
"version": "3.0.0-pre-a35f774", | ||
"description": "pprof support for Node.js", | ||
@@ -17,6 +17,7 @@ "repository": "datadog/pprof-nodejs", | ||
"fix": "gts fix", | ||
"lint": "jsgl --local . && gts check", | ||
"lint": "jsgl --local . && gts check && clang-format --style file -n -Werror --glob='bindings/**/*.{h,hh,cpp,cc}'", | ||
"format": "clang-format --style file -i --glob='bindings/**/*.{h,hh,cpp,cc}'", | ||
"prebuild": "node scripts/prebuild.js", | ||
"prebuilds": "node scripts/prebuilds.js", | ||
"prepare": "npm run compile", | ||
"prepare": "npm run compile && npm run rebuild", | ||
"pretest": "npm run compile && npm run rebuild" | ||
@@ -33,3 +34,3 @@ }, | ||
"pify": "^5.0.0", | ||
"pprof-format": "^2.0.6", | ||
"pprof-format": "^2.0.7", | ||
"source-map": "^0.7.3", | ||
@@ -40,3 +41,3 @@ "split": "^1.0.1" | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^18.0.6", | ||
"@types/node": "^18.16.16", | ||
"@types/p-limit": "^2.0.0", | ||
@@ -46,17 +47,17 @@ "@types/pify": "^5.0.0", | ||
"@types/request": "^2.47.1", | ||
"@types/sinon": "^10.0.0", | ||
"@types/sinon": "^10.0.15", | ||
"@types/tmp": "^0.2.3", | ||
"@typescript-eslint/eslint-plugin": "^5.38.0", | ||
"@typescript-eslint/eslint-plugin": "^5.59.9", | ||
"axios": "^0.27.2", | ||
"checksum": "^1.0.0", | ||
"clang-format": "^1.8.0", | ||
"codecov": "^3.0.0", | ||
"deep-copy": "^1.4.2", | ||
"eslint-config-standard": "^17.0.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-n": "^15.2.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"glob": "^8.0.3", | ||
"eslint-config-standard": "^17.1.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-n": "^15.7.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"glob": "^8.1.0", | ||
"gts": "^3.0.0", | ||
"js-green-licenses": "^4.0.0", | ||
"linkinator": "^4.0.2", | ||
"mkdirp": "^1.0.4", | ||
@@ -68,9 +69,9 @@ "mocha": "^9.2.2", | ||
"rimraf": "^3.0.2", | ||
"semver": "^7.3.5", | ||
"sinon": "^14.0.0", | ||
"semver": "^7.5.1", | ||
"sinon": "^14.0.2", | ||
"source-map-support": "^0.5.12", | ||
"tar": "^6.1.0", | ||
"tar": "^6.1.15", | ||
"tmp": "0.2.1", | ||
"ts-mockito": "^2.2.5", | ||
"typescript": "^4.7.4" | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -77,0 +78,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
14241089
108
71
Updatedpprof-format@^2.0.7