@datadog/pprof
Advanced tools
Comparing version 2.2.1 to 3.0.0-pre-60585ba
@@ -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": "2.2.1", | ||
"version": "3.0.0-pre-60585ba", | ||
"description": "pprof support for Node.js", | ||
@@ -21,3 +21,3 @@ "repository": "datadog/pprof-nodejs", | ||
"prebuilds": "node scripts/prebuilds.js", | ||
"prepare": "npm run compile", | ||
"prepare": "npm run compile && npm run rebuild", | ||
"pretest": "npm run compile && npm run rebuild" | ||
@@ -34,3 +34,3 @@ }, | ||
"pify": "^5.0.0", | ||
"pprof-format": "^2.0.6", | ||
"pprof-format": "^2.0.7", | ||
"source-map": "^0.7.3", | ||
@@ -41,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", | ||
@@ -47,5 +47,5 @@ "@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", | ||
@@ -56,10 +56,9 @@ "checksum": "^1.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", | ||
@@ -71,9 +70,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" | ||
}, | ||
@@ -80,0 +79,0 @@ "files": [ |
# pprof support for Node.js | ||
[![NPM Version][npm-image]][npm-url] | ||
[![Build Status][circle-image]][circle-url] | ||
[![Build Status][build-image]][build-url] | ||
[![Known Vulnerabilities][snyk-image]][snyk-url] | ||
@@ -111,4 +111,4 @@ | ||
[circle-image]: https://circleci.com/gh/google/pprof-nodejs.svg?style=svg | ||
[circle-url]: https://circleci.com/gh/google/pprof-nodejs | ||
[build-image]: https://github.com/Datadog/pprof-nodejs/actions/workflows/build.yml/badge.svg?branch=main | ||
[build-url]: https://github.com/Datadog/pprof-nodejs/actions/workflows/build.yml | ||
[coveralls-image]: https://coveralls.io/repos/google/pprof-nodejs/badge.svg?branch=main&service=github | ||
@@ -115,0 +115,0 @@ [npm-image]: https://badge.fury.io/js/pprof.svg |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14241141
34
2
Updatedpprof-format@^2.0.7