@datadog/pprof 5.15.1 → 5.17.0
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/out/src/heap-profiler.d.ts +4 -3
- package/out/src/heap-profiler.js +6 -6
- package/out/src/heap-profiler.js.map +1 -1
- package/out/src/index.d.ts +7 -0
- package/out/src/index.js +12 -1
- package/out/src/index.js.map +1 -1
- package/out/src/otel-thread-ctx.d.ts +85 -0
- package/out/src/otel-thread-ctx.js +176 -0
- package/out/src/otel-thread-ctx.js.map +1 -0
- package/out/src/profile-serializer.d.ts +18 -2
- package/out/src/profile-serializer.js +36 -7
- package/out/src/profile-serializer.js.map +1 -1
- package/out/src/time-profiler.d.ts +9 -0
- package/out/src/time-profiler.js +5 -2
- package/out/src/time-profiler.js.map +1 -1
- package/package.json +12 -11
- package/prebuilds/darwin-arm64/dd_pprof.node.abi108.node +0 -0
- package/prebuilds/darwin-arm64/dd_pprof.node.abi111.node +0 -0
- package/prebuilds/darwin-arm64/dd_pprof.node.abi115.node +0 -0
- package/prebuilds/darwin-arm64/dd_pprof.node.abi120.node +0 -0
- package/prebuilds/darwin-arm64/dd_pprof.node.abi127.node +0 -0
- package/prebuilds/darwin-arm64/dd_pprof.node.abi131.node +0 -0
- package/prebuilds/darwin-arm64/dd_pprof.node.abi137.node +0 -0
- package/prebuilds/darwin-arm64/dd_pprof.node.abi141.node +0 -0
- package/prebuilds/darwin-arm64/dd_pprof.node.abi147.node +0 -0
- package/prebuilds/darwin-x64/dd_pprof.node.abi108.node +0 -0
- package/prebuilds/darwin-x64/dd_pprof.node.abi111.node +0 -0
- package/prebuilds/darwin-x64/dd_pprof.node.abi115.node +0 -0
- package/prebuilds/darwin-x64/dd_pprof.node.abi120.node +0 -0
- package/prebuilds/darwin-x64/dd_pprof.node.abi127.node +0 -0
- package/prebuilds/darwin-x64/dd_pprof.node.abi131.node +0 -0
- package/prebuilds/darwin-x64/dd_pprof.node.abi137.node +0 -0
- package/prebuilds/darwin-x64/dd_pprof.node.abi141.node +0 -0
- package/prebuilds/darwin-x64/dd_pprof.node.abi147.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.musl.node.abi108.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.musl.node.abi111.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.musl.node.abi115.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.musl.node.abi120.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.musl.node.abi127.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.musl.node.abi131.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.musl.node.abi137.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.musl.node.abi141.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.musl.node.abi147.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.node.abi108.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.node.abi111.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.node.abi115.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.node.abi120.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.node.abi127.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.node.abi131.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.node.abi137.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.node.abi141.node +0 -0
- package/prebuilds/linux-arm64/dd_pprof.node.abi147.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.musl.node.abi108.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.musl.node.abi111.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.musl.node.abi115.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.musl.node.abi120.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.musl.node.abi127.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.musl.node.abi131.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.musl.node.abi137.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.musl.node.abi141.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.musl.node.abi147.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.node.abi108.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.node.abi111.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.node.abi115.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.node.abi120.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.node.abi127.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.node.abi131.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.node.abi137.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.node.abi141.node +0 -0
- package/prebuilds/linux-x64/dd_pprof.node.abi147.node +0 -0
- package/prebuilds/win32-x64/dd_pprof.node.abi108.node +0 -0
- package/prebuilds/win32-x64/dd_pprof.node.abi111.node +0 -0
- package/prebuilds/win32-x64/dd_pprof.node.abi115.node +0 -0
- package/prebuilds/win32-x64/dd_pprof.node.abi120.node +0 -0
- package/prebuilds/win32-x64/dd_pprof.node.abi127.node +0 -0
- package/prebuilds/win32-x64/dd_pprof.node.abi131.node +0 -0
- package/prebuilds/win32-x64/dd_pprof.node.abi137.node +0 -0
- package/prebuilds/win32-x64/dd_pprof.node.abi141.node +0 -0
- package/prebuilds/win32-x64/dd_pprof.node.abi147.node +0 -0
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Profile } from 'pprof-format';
|
|
17
|
+
import { ColumnNumbers } from './profile-serializer';
|
|
17
18
|
import { SourceMapper } from './sourcemapper/sourcemapper';
|
|
18
19
|
import { AllocationProfileNode, AllocationProfileNodeWithStats, GenerateAllocationLabelsFunction } from './v8-types';
|
|
19
20
|
export declare function v8Profile(): AllocationProfileNode | AllocationProfileNodeWithStats;
|
|
@@ -36,8 +37,8 @@ export declare function v8ProfileV2<T>(callback: (root: AllocationProfileNode) =
|
|
|
36
37
|
* @param ignoreSamplePath
|
|
37
38
|
* @param sourceMapper
|
|
38
39
|
*/
|
|
39
|
-
export declare function profile(ignoreSamplePath?: string, sourceMapper?: SourceMapper, generateLabels?: GenerateAllocationLabelsFunction): Profile;
|
|
40
|
-
export declare function convertProfile(rootNode: AllocationProfileNode | AllocationProfileNodeWithStats, ignoreSamplePath?: string, sourceMapper?: SourceMapper, generateLabels?: GenerateAllocationLabelsFunction): Profile;
|
|
40
|
+
export declare function profile(ignoreSamplePath?: string, sourceMapper?: SourceMapper, generateLabels?: GenerateAllocationLabelsFunction, columnNumbers?: ColumnNumbers): Profile;
|
|
41
|
+
export declare function convertProfile(rootNode: AllocationProfileNode | AllocationProfileNodeWithStats, ignoreSamplePath?: string, sourceMapper?: SourceMapper, generateLabels?: GenerateAllocationLabelsFunction, columnNumbers?: ColumnNumbers): Profile;
|
|
41
42
|
/**
|
|
42
43
|
* Collects a profile and returns it serialized in pprof format using lazy V2 API.
|
|
43
44
|
* Throws if heap profiler is not enabled.
|
|
@@ -46,7 +47,7 @@ export declare function convertProfile(rootNode: AllocationProfileNode | Allocat
|
|
|
46
47
|
* @param sourceMapper
|
|
47
48
|
* @param generateLabels
|
|
48
49
|
*/
|
|
49
|
-
export declare function profileV2(ignoreSamplePath?: string, sourceMapper?: SourceMapper, generateLabels?: GenerateAllocationLabelsFunction): Profile;
|
|
50
|
+
export declare function profileV2(ignoreSamplePath?: string, sourceMapper?: SourceMapper, generateLabels?: GenerateAllocationLabelsFunction, columnNumbers?: ColumnNumbers): Profile;
|
|
50
51
|
/**
|
|
51
52
|
* Starts heap profiling. If heap profiling has already been started with
|
|
52
53
|
* the same parameters, this is a noop. If heap profiler has already been
|
package/out/src/heap-profiler.js
CHANGED
|
@@ -70,8 +70,8 @@ function v8ProfileV2(callback) {
|
|
|
70
70
|
* @param ignoreSamplePath
|
|
71
71
|
* @param sourceMapper
|
|
72
72
|
*/
|
|
73
|
-
function profile(ignoreSamplePath, sourceMapper, generateLabels) {
|
|
74
|
-
const result = convertProfile(v8Profile(), ignoreSamplePath, sourceMapper, generateLabels);
|
|
73
|
+
function profile(ignoreSamplePath, sourceMapper, generateLabels, columnNumbers = profile_serializer_1.DEFAULT_COLUMN_NUMBERS) {
|
|
74
|
+
const result = convertProfile(v8Profile(), ignoreSamplePath, sourceMapper, generateLabels, columnNumbers);
|
|
75
75
|
// In allocation mode V8 keeps every sampled object (live + collected-by-GC)
|
|
76
76
|
// in an append-only buffer that's only freed by stopSamplingHeapProfiler.
|
|
77
77
|
// Without this reset, each call to getAllocationProfile re-reads the entire
|
|
@@ -83,7 +83,7 @@ function profile(ignoreSamplePath, sourceMapper, generateLabels) {
|
|
|
83
83
|
}
|
|
84
84
|
return result;
|
|
85
85
|
}
|
|
86
|
-
function convertProfile(rootNode, ignoreSamplePath, sourceMapper, generateLabels) {
|
|
86
|
+
function convertProfile(rootNode, ignoreSamplePath, sourceMapper, generateLabels, columnNumbers = profile_serializer_1.DEFAULT_COLUMN_NUMBERS) {
|
|
87
87
|
const allocations = startedWithAllocations;
|
|
88
88
|
const startTimeNanos = Date.now() * 1000 * 1000;
|
|
89
89
|
// Add node for external memory usage.
|
|
@@ -127,7 +127,7 @@ function convertProfile(rootNode, ignoreSamplePath, sourceMapper, generateLabels
|
|
|
127
127
|
else {
|
|
128
128
|
root = rootNode;
|
|
129
129
|
}
|
|
130
|
-
return (0, profile_serializer_1.serializeHeapProfile)(root, startTimeNanos, heapIntervalBytes, ignoreSamplePath, sourceMapper, generateLabels, allocations);
|
|
130
|
+
return (0, profile_serializer_1.serializeHeapProfile)(root, startTimeNanos, heapIntervalBytes, ignoreSamplePath, sourceMapper, generateLabels, allocations, columnNumbers);
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
133
|
* Collects a profile and returns it serialized in pprof format using lazy V2 API.
|
|
@@ -137,9 +137,9 @@ function convertProfile(rootNode, ignoreSamplePath, sourceMapper, generateLabels
|
|
|
137
137
|
* @param sourceMapper
|
|
138
138
|
* @param generateLabels
|
|
139
139
|
*/
|
|
140
|
-
function profileV2(ignoreSamplePath, sourceMapper, generateLabels) {
|
|
140
|
+
function profileV2(ignoreSamplePath, sourceMapper, generateLabels, columnNumbers = profile_serializer_1.DEFAULT_COLUMN_NUMBERS) {
|
|
141
141
|
return v8ProfileV2(root => {
|
|
142
|
-
return convertProfile(root, ignoreSamplePath, sourceMapper, generateLabels);
|
|
142
|
+
return convertProfile(root, ignoreSamplePath, sourceMapper, generateLabels, columnNumbers);
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heap-profiler.js","sourceRoot":"","sources":["../../ts/src/heap-profiler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;
|
|
1
|
+
{"version":3,"file":"heap-profiler.js","sourceRoot":"","sources":["../../ts/src/heap-profiler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAmCH,8BAOC;AAaD,kCAUC;AASD,0BAuBC;AAED,wCA0DC;AAUD,8BAeC;AAcD,sBAeC;AAGD,oBAMC;AAqCD,gDA4BC;AAzRD,qEAMkC;AAClC,6DAI8B;AAO9B,mDAA4C;AAE5C,IAAI,OAAO,GAAG,KAAK,CAAC;AACpB,IAAI,iBAAiB,GAAG,CAAC,CAAC;AAC1B,IAAI,cAAc,GAAG,CAAC,CAAC;AACvB,IAAI,sBAAsB,GAAG,KAAK,CAAC;AAEnC;;;;;GAKG;AACH,SAAgB,SAAS;IAGvB,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,IAAA,6CAAoB,GAAE,CAAC;AAChC,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,WAAW,CACzB,QAA4C;IAE5C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC;IACD,IAA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,CACb,CAAC;AACJ,CAAC"}
|
package/out/src/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as heapProfiler from './heap-profiler';
|
|
2
|
+
import * as otelThreadCtxModule from './otel-thread-ctx';
|
|
2
3
|
import * as timeProfiler from './time-profiler';
|
|
3
4
|
export { AllocationProfileNode, TimeProfileNode, ProfileNode, LabelSet, } from './v8-types';
|
|
4
5
|
export { encode, encodeSync } from './profile-encoder';
|
|
@@ -37,3 +38,9 @@ export declare const heap: {
|
|
|
37
38
|
Both: number;
|
|
38
39
|
};
|
|
39
40
|
};
|
|
41
|
+
export declare const otelThreadCtx: {
|
|
42
|
+
ThreadContext: otelThreadCtxModule.ThreadContextCtor;
|
|
43
|
+
getContext: () => otelThreadCtxModule.ThreadContext | undefined;
|
|
44
|
+
clearContext: () => void;
|
|
45
|
+
getProcessContextAttributes: typeof otelThreadCtxModule.getProcessContextAttributes;
|
|
46
|
+
};
|
package/out/src/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.heap = exports.time = exports.getNativeThreadId = exports.setLogger = exports.SourceMapper = exports.encodeSync = exports.encode = void 0;
|
|
36
|
+
exports.otelThreadCtx = exports.heap = exports.time = exports.getNativeThreadId = exports.setLogger = exports.SourceMapper = exports.encodeSync = exports.encode = void 0;
|
|
37
37
|
/**
|
|
38
38
|
* Copyright 2019 Google Inc. All Rights Reserved.
|
|
39
39
|
*
|
|
@@ -51,6 +51,7 @@ exports.heap = exports.time = exports.getNativeThreadId = exports.setLogger = ex
|
|
|
51
51
|
*/
|
|
52
52
|
const fs_1 = require("fs");
|
|
53
53
|
const heapProfiler = __importStar(require("./heap-profiler"));
|
|
54
|
+
const otelThreadCtxModule = __importStar(require("./otel-thread-ctx"));
|
|
54
55
|
const profile_encoder_1 = require("./profile-encoder");
|
|
55
56
|
const timeProfiler = __importStar(require("./time-profiler"));
|
|
56
57
|
var profile_encoder_2 = require("./profile-encoder");
|
|
@@ -86,6 +87,16 @@ exports.heap = {
|
|
|
86
87
|
monitorOutOfMemory: heapProfiler.monitorOutOfMemory,
|
|
87
88
|
CallbackMode: heapProfiler.CallbackMode,
|
|
88
89
|
};
|
|
90
|
+
// Writer for the OpenTelemetry Thread Local Context Record (OTEP-4947).
|
|
91
|
+
// Linux + AsyncContextFrame (Node 22 with --experimental-async-context-frame,
|
|
92
|
+
// Node 24+ by default) only; degrades to no-ops on other platforms / Node
|
|
93
|
+
// versions.
|
|
94
|
+
exports.otelThreadCtx = {
|
|
95
|
+
ThreadContext: otelThreadCtxModule.ThreadContext,
|
|
96
|
+
getContext: otelThreadCtxModule.getContext,
|
|
97
|
+
clearContext: otelThreadCtxModule.clearContext,
|
|
98
|
+
getProcessContextAttributes: otelThreadCtxModule.getProcessContextAttributes,
|
|
99
|
+
};
|
|
89
100
|
// If loaded with --require, start profiling.
|
|
90
101
|
if (module.parent && module.parent.id === 'internal/preload') {
|
|
91
102
|
exports.time.start({});
|
package/out/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,2BAAiC;AAEjC,8DAAgD;AAChD,uDAA6C;AAC7C,8DAAgD;AAQhD,qDAAqD;AAA7C,yGAAA,MAAM,OAAA;AAAE,6GAAA,UAAU,OAAA;AAC1B,4DAAyD;AAAjD,4GAAA,YAAY,OAAA;AACpB,mCAAmC;AAA3B,mGAAA,SAAS,OAAA;AACjB,iDAAkD;AAA1C,kHAAA,iBAAiB,OAAA;AAEZ,QAAA,IAAI,GAAG;IAClB,OAAO,EAAE,YAAY,CAAC,OAAO;IAC7B,KAAK,EAAE,YAAY,CAAC,KA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A0E;AAC1E,YAAY;AACC,QAAA,aAAa,GAAG;IAC3B,aAAa,EAAE,mBAAmB,CAAC,aAAa;IAChD,UAAU,EAAE,mBAAmB,CAAC,UAAU;IAC1C,YAAY,EAAE,mBAAmB,CAAC,YAAY;IAC9C,2BAA2B,EAAE,mBAAmB,CAAC,2BAA2B;CAC7E,CAAC;AAEF,6CAA6C;AAC7C,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,kBAAkB,EAAE,CAAC;IAC7D,YAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;QACtB,uEAAuE;QACvE,kBAAkB;QAClB,MAAM,OAAO,GAAG,YAAI,CAAC,IAAI,EAAE,CAAC;QAC5B,MAAM,MAAM,GAAG,IAAA,4BAAU,EAAC,OAAO,CAAC,CAAC;QACnC,IAAA,kBAAa,EAAC,iBAAiB,OAAO,CAAC,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTEP-4719 process-context attributes corresponding to a particular
|
|
3
|
+
* key list. Spread this into whatever attribute map the application
|
|
4
|
+
* hands to its OTEP-4719 process-context publisher.
|
|
5
|
+
*/
|
|
6
|
+
export interface ProcessContextAttributes {
|
|
7
|
+
readonly 'threadlocal.schema_version': 'nodejs_v1_dev';
|
|
8
|
+
readonly 'threadlocal.attribute_key_map': readonly string[];
|
|
9
|
+
readonly 'threadlocal.wrapped_object_offset': number;
|
|
10
|
+
readonly 'threadlocal.tagged_size': number;
|
|
11
|
+
readonly 'threadlocal.native_wrap_fields_offset': number;
|
|
12
|
+
readonly 'threadlocal.js_map_table_offset': number;
|
|
13
|
+
readonly 'threadlocal.ordered_hash_map_header_size': number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A thread-context record. Construct with `new ThreadContext(...)`; install
|
|
17
|
+
* via the {@link enter} or {@link run} instance methods. The underlying
|
|
18
|
+
* native record is GC-owned: when no JS or async-context-frame reference
|
|
19
|
+
* survives, it's freed.
|
|
20
|
+
*
|
|
21
|
+
* `appendAttributes` mutates the context's record in place. Because every
|
|
22
|
+
* async-context frame that holds the same `ThreadContext` reference observes
|
|
23
|
+
* the same native record buffer, an append is visible across all those
|
|
24
|
+
* frames even when the reallocate path runs (the context's internal
|
|
25
|
+
* pointer is updated, the JS object is not replaced).
|
|
26
|
+
*/
|
|
27
|
+
export interface ThreadContext {
|
|
28
|
+
appendAttributes(attributes: Array<string | null | undefined> | undefined): void;
|
|
29
|
+
isTruncated(): boolean;
|
|
30
|
+
/** Debug-only: returns the on-the-wire record bytes. Not stable. */
|
|
31
|
+
debugBytes(): Uint8Array;
|
|
32
|
+
/**
|
|
33
|
+
* Attach this context to the current async-context frame (and every
|
|
34
|
+
* frame derived from it until the frame ends or {@link clearContext}
|
|
35
|
+
* detaches it). Re-installing the same context reference is cheap (no
|
|
36
|
+
* allocation); per-span caching of the context on the caller side is
|
|
37
|
+
* the intended usage pattern.
|
|
38
|
+
*
|
|
39
|
+
* On non-Linux platforms this is a no-op.
|
|
40
|
+
*/
|
|
41
|
+
enter(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Attach this context for the duration of `fn`. Equivalent to
|
|
44
|
+
* `als.run(this, fn)` — after `fn` returns, the previous context is
|
|
45
|
+
* restored. Returns whatever `fn` returns; if `fn` returns a Promise,
|
|
46
|
+
* the same Promise is propagated. On non-Linux platforms simply
|
|
47
|
+
* invokes `fn`.
|
|
48
|
+
*/
|
|
49
|
+
run<T>(fn: () => T): T;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Constructor for {@link ThreadContext}. On non-Linux platforms, returns a
|
|
53
|
+
* no-op instance whose methods do nothing — the OTEP-4947 reader
|
|
54
|
+
* contract is ELF-TLSDESC, only meaningful on Linux.
|
|
55
|
+
*/
|
|
56
|
+
export interface ThreadContextCtor {
|
|
57
|
+
new (traceId: Uint8Array, spanId: Uint8Array, attributes?: Array<string | null | undefined>): ThreadContext;
|
|
58
|
+
readonly prototype: ThreadContext;
|
|
59
|
+
}
|
|
60
|
+
/** {@inheritDoc ThreadContextCtor} */
|
|
61
|
+
export declare let ThreadContext: ThreadContextCtor;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the {@link ThreadContext} currently attached to the active
|
|
64
|
+
* async-context frame, or `undefined` if none is.
|
|
65
|
+
*/
|
|
66
|
+
export declare let getContext: () => ThreadContext | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Detach any {@link ThreadContext} from the current async-context frame.
|
|
69
|
+
* Idempotent when no context is attached. On non-Linux platforms this is
|
|
70
|
+
* a no-op.
|
|
71
|
+
*/
|
|
72
|
+
export declare let clearContext: () => void;
|
|
73
|
+
export declare let _currentRecordBytes: () => Uint8Array | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the OTEP-4719 process-context attributes the caller should
|
|
76
|
+
* publish so an out-of-process reader can decode the on-the-wire uint8
|
|
77
|
+
* key indexes back to attribute names. The supplied `keys` array is the
|
|
78
|
+
* same string list the caller writes into the positional `attributes`
|
|
79
|
+
* argument of {@link ThreadContext}: index N here is the uint8 key index
|
|
80
|
+
* N in each record.
|
|
81
|
+
*
|
|
82
|
+
* `keys` is validated: must be a string array of length ≤ 256 with no
|
|
83
|
+
* duplicates.
|
|
84
|
+
*/
|
|
85
|
+
export declare function getProcessContextAttributes(keys: string[]): ProcessContextAttributes;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2026 Datadog, Inc
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports._currentRecordBytes = exports.clearContext = exports.getContext = exports.ThreadContext = void 0;
|
|
19
|
+
exports.getProcessContextAttributes = getProcessContextAttributes;
|
|
20
|
+
// Vendored from https://github.com/polarsignals/custom-labels/tree/otel-thread-ctx-wip/js/
|
|
21
|
+
// (originally js/index.js + js/index.d.ts, merged into TypeScript). Kept
|
|
22
|
+
// as a near-verbatim copy: edits should ideally land upstream first and
|
|
23
|
+
// be ported here, so the two stay in sync. We plan to drop this vendored
|
|
24
|
+
// copy once the upstream package is suitable to depend on directly.
|
|
25
|
+
// Node.js writer for the OpenTelemetry Thread Local Context Record
|
|
26
|
+
// (OTEP-4947), discoverable from an out-of-process reader via the
|
|
27
|
+
// `otel_thread_ctx_nodejs_v1` thread-local symbol exported by
|
|
28
|
+
// `dd_pprof.node`.
|
|
29
|
+
//
|
|
30
|
+
// Linux only; on other platforms the exported functions degrade to no-ops.
|
|
31
|
+
const path_1 = require("path");
|
|
32
|
+
const node_async_hooks_1 = require("node:async_hooks");
|
|
33
|
+
const SCHEMA_VERSION = 'nodejs_v1_dev';
|
|
34
|
+
// V8 layout constants the addon captured from the V8 headers Node bundles.
|
|
35
|
+
// On non-Linux these fall back to values matching Node's standard build
|
|
36
|
+
// (no V8 pointer compression, no sandbox); the reader is Linux-only per
|
|
37
|
+
// the OTEP anyway, so the fallbacks just keep processContextAttributes
|
|
38
|
+
// consistent in shape.
|
|
39
|
+
let WRAPPED_OBJECT_OFFSET = 24;
|
|
40
|
+
let TAGGED_SIZE = 8;
|
|
41
|
+
let NATIVE_WRAP_FIELDS_OFFSET = 24;
|
|
42
|
+
let JS_MAP_TABLE_OFFSET = 0x18;
|
|
43
|
+
let ORDERED_HASH_MAP_HEADER_SIZE = 0x10;
|
|
44
|
+
// Debug accessor (not part of the stable API; for tests / reader dev).
|
|
45
|
+
let _currentRecordBytes = () => undefined;
|
|
46
|
+
exports._currentRecordBytes = _currentRecordBytes;
|
|
47
|
+
if (process.platform === 'linux') {
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
49
|
+
const findBinding = require('node-gyp-build');
|
|
50
|
+
const addon = findBinding((0, path_1.join)(__dirname, '..', '..'));
|
|
51
|
+
WRAPPED_OBJECT_OFFSET = addon.otelThreadCtxWrappedObjectOffset;
|
|
52
|
+
TAGGED_SIZE = addon.otelThreadCtxTaggedSize;
|
|
53
|
+
NATIVE_WRAP_FIELDS_OFFSET = addon.otelThreadCtxNativeWrapFieldsOffset;
|
|
54
|
+
JS_MAP_TABLE_OFFSET = addon.otelThreadCtxJsMapTableOffset;
|
|
55
|
+
ORDERED_HASH_MAP_HEADER_SIZE = addon.otelThreadCtxOrderedHashMapHeaderSize;
|
|
56
|
+
exports.ThreadContext = addon.threadContext;
|
|
57
|
+
let als;
|
|
58
|
+
function asyncContextFrameError() {
|
|
59
|
+
const [major] = process.versions.node.split('.').map(Number);
|
|
60
|
+
if (process.execArgv.includes('--no-async-context-frame')) {
|
|
61
|
+
return 'Node explicitly launched with --no-async-context-frame';
|
|
62
|
+
}
|
|
63
|
+
if (major >= 24)
|
|
64
|
+
return undefined;
|
|
65
|
+
if (process.execArgv.includes('--experimental-async-context-frame')) {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
if (major >= 22) {
|
|
69
|
+
return 'Node versions prior to v24 must be launched with --experimental-async-context-frame';
|
|
70
|
+
}
|
|
71
|
+
return 'Node major versions prior to v22 do not support the feature at all';
|
|
72
|
+
}
|
|
73
|
+
function ensureHook() {
|
|
74
|
+
if (als)
|
|
75
|
+
return als;
|
|
76
|
+
const err = asyncContextFrameError();
|
|
77
|
+
if (err) {
|
|
78
|
+
throw new Error(`otel thread-ctx writer requires async_context_frame support, which is unavailable: ${err}.`);
|
|
79
|
+
}
|
|
80
|
+
als = new node_async_hooks_1.AsyncLocalStorage();
|
|
81
|
+
addon.otelThreadCtxStoreAls(als);
|
|
82
|
+
return als;
|
|
83
|
+
}
|
|
84
|
+
exports.getContext = function () {
|
|
85
|
+
return als ? als.getStore() : undefined;
|
|
86
|
+
};
|
|
87
|
+
// Idempotent: clearing when the hook hasn't been installed (no prior
|
|
88
|
+
// enter / run on a ThreadContext) is a no-op.
|
|
89
|
+
exports.clearContext = function () {
|
|
90
|
+
if (!als)
|
|
91
|
+
return;
|
|
92
|
+
als.enterWith(undefined);
|
|
93
|
+
};
|
|
94
|
+
// Install the active-context channel on the ThreadContext prototype so
|
|
95
|
+
// the only way to push a ThreadContext into our AsyncLocalStorage is
|
|
96
|
+
// via the context itself — callers can't poison the ALS with an
|
|
97
|
+
// arbitrary object.
|
|
98
|
+
exports.ThreadContext.prototype.enter = function () {
|
|
99
|
+
ensureHook().enterWith(this);
|
|
100
|
+
};
|
|
101
|
+
exports.ThreadContext.prototype.run = function (fn) {
|
|
102
|
+
return ensureHook().run(this, fn);
|
|
103
|
+
};
|
|
104
|
+
exports._currentRecordBytes = function () {
|
|
105
|
+
if (!als)
|
|
106
|
+
return undefined;
|
|
107
|
+
const context = als.getStore();
|
|
108
|
+
return context ? context.debugBytes() : undefined;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
// Non-Linux degradation. The writer's reader contract is ELF-TLSDESC,
|
|
113
|
+
// meaningful only on Linux; on other platforms we still want the API
|
|
114
|
+
// to be callable so consumers don't have to gate every call site —
|
|
115
|
+
// construction succeeds but produces an inert context, and the
|
|
116
|
+
// enter/run/clearContext entry points don't wire anything into
|
|
117
|
+
// AsyncLocalStorage.
|
|
118
|
+
class NoopThreadContext {
|
|
119
|
+
appendAttributes() { }
|
|
120
|
+
isTruncated() {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
debugBytes() {
|
|
124
|
+
return new Uint8Array(0);
|
|
125
|
+
}
|
|
126
|
+
enter() { }
|
|
127
|
+
run(fn) {
|
|
128
|
+
return fn();
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.ThreadContext = NoopThreadContext;
|
|
132
|
+
exports.getContext = function () {
|
|
133
|
+
return undefined;
|
|
134
|
+
};
|
|
135
|
+
exports.clearContext = function () { };
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Returns the OTEP-4719 process-context attributes the caller should
|
|
139
|
+
* publish so an out-of-process reader can decode the on-the-wire uint8
|
|
140
|
+
* key indexes back to attribute names. The supplied `keys` array is the
|
|
141
|
+
* same string list the caller writes into the positional `attributes`
|
|
142
|
+
* argument of {@link ThreadContext}: index N here is the uint8 key index
|
|
143
|
+
* N in each record.
|
|
144
|
+
*
|
|
145
|
+
* `keys` is validated: must be a string array of length ≤ 256 with no
|
|
146
|
+
* duplicates.
|
|
147
|
+
*/
|
|
148
|
+
function getProcessContextAttributes(keys) {
|
|
149
|
+
if (!Array.isArray(keys)) {
|
|
150
|
+
throw new TypeError('keys must be an array of attribute names');
|
|
151
|
+
}
|
|
152
|
+
if (keys.length > 256) {
|
|
153
|
+
throw new RangeError('keys array exceeds 256 entries');
|
|
154
|
+
}
|
|
155
|
+
const seen = new Set();
|
|
156
|
+
for (let i = 0; i < keys.length; ++i) {
|
|
157
|
+
const name = keys[i];
|
|
158
|
+
if (typeof name !== 'string') {
|
|
159
|
+
throw new TypeError('every key must be a string');
|
|
160
|
+
}
|
|
161
|
+
if (seen.has(name)) {
|
|
162
|
+
throw new Error(`duplicate key name at index ${i}: ${name}`);
|
|
163
|
+
}
|
|
164
|
+
seen.add(name);
|
|
165
|
+
}
|
|
166
|
+
return Object.freeze({
|
|
167
|
+
'threadlocal.schema_version': SCHEMA_VERSION,
|
|
168
|
+
'threadlocal.attribute_key_map': Object.freeze(keys.slice()),
|
|
169
|
+
'threadlocal.wrapped_object_offset': WRAPPED_OBJECT_OFFSET,
|
|
170
|
+
'threadlocal.tagged_size': TAGGED_SIZE,
|
|
171
|
+
'threadlocal.native_wrap_fields_offset': NATIVE_WRAP_FIELDS_OFFSET,
|
|
172
|
+
'threadlocal.js_map_table_offset': JS_MAP_TABLE_OFFSET,
|
|
173
|
+
'threadlocal.ordered_hash_map_header_size': ORDERED_HASH_MAP_HEADER_SIZE,
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=otel-thread-ctx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel-thread-ctx.js","sourceRoot":"","sources":["../../ts/src/otel-thread-ctx.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAiPH,kEA6BC;AA5QD,2FAA2F;AAC3F,yEAAyE;AACzE,wEAAwE;AACxE,yEAAyE;AACzE,oEAAoE;AAEpE,mEAAmE;AACnE,kEAAkE;AAClE,8DAA8D;AAC9D,mBAAmB;AACnB,EAAE;AACF,2EAA2E;AAE3E,+BAA0B;AAC1B,uDAAmD;AAmFnD,MAAM,cAAc,GAAG,eAAe,CAAC;AAEvC,2EAA2E;AAC3E,wEAAwE;AACxE,wEAAwE;AACxE,uEAAuE;AACvE,uBAAuB;AACvB,IAAI,qBAAqB,GAAG,EAAE,CAAC;AAC/B,IAAI,WAAW,GAAG,CAAC,CAAC;AACpB,IAAI,yBAAyB,GAAG,EAAE,CAAC;AACnC,IAAI,mBAAmB,GAAG,IAAI,CAAC;AAC/B,IAAI,4BAA4B,GAAG,IAAI,CAAC;AAkBxC,uEAAuE;AAChE,IAAI,mBAAmB,GAAiC,GAAG,EAAE,CAAC,SAAS,CAAC;AAApE,QAAA,mBAAmB,uBAAiD;AAE/E,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;IAC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C,EAAE,qBAAqB;QAC1D,yBAAyB,EAAE,WAAW;QACtC,uCAAuC,EAAE,yBAAyB;QAClE,iCAAiC,EAAE,mBAAmB;QACtD,0CAA0C,EAAE,4BAA4B;KACzE,CAA6B,CAAC;AACjC,CAAC"}
|
|
@@ -18,6 +18,22 @@ import { SourceMapper } from './sourcemapper/sourcemapper';
|
|
|
18
18
|
import { AllocationProfileNode, AllocationProfileNodeWithStats, GenerateAllocationLabelsFunction, GenerateTimeLabelsFunction, TimeProfile, TimeProfileNode } from './v8-types';
|
|
19
19
|
export declare const NON_JS_THREADS_FUNCTION_NAME = "Non JS threads activity";
|
|
20
20
|
export declare const GARBAGE_COLLECTION_FUNCTION_NAME = "Garbage Collection";
|
|
21
|
+
/**
|
|
22
|
+
* Controls how a frame's column number is represented in the emitted profile.
|
|
23
|
+
* - `'drop'`: omit the column; only the line number is emitted. This is the
|
|
24
|
+
* default and matches the historical behavior and standard pprof line
|
|
25
|
+
* semantics, so existing consumers see unchanged line numbers.
|
|
26
|
+
* - `'pack'`: pack the column into the high 32 bits of the line field
|
|
27
|
+
* (`column << 32 | line`) — the encoding the Datadog deobfuscation backend
|
|
28
|
+
* decodes (the same one the Chrome profile intake uses). Required to
|
|
29
|
+
* deobfuscate single-line (bundled/minified) frames, where the column is the
|
|
30
|
+
* only discriminator between functions.
|
|
31
|
+
*
|
|
32
|
+
* The enum leaves room for a future `'emit'` mode that would populate a real
|
|
33
|
+
* pprof `Line.column` field once the backend consumes it.
|
|
34
|
+
*/
|
|
35
|
+
export type ColumnNumbers = 'drop' | 'pack';
|
|
36
|
+
export declare const DEFAULT_COLUMN_NUMBERS: ColumnNumbers;
|
|
21
37
|
export declare function computeTotalHitCount(root: TimeProfileNode): number;
|
|
22
38
|
/**
|
|
23
39
|
* Converts v8 time profile into into a profile proto.
|
|
@@ -26,7 +42,7 @@ export declare function computeTotalHitCount(root: TimeProfileNode): number;
|
|
|
26
42
|
* @param prof - profile to be converted.
|
|
27
43
|
* @param intervalMicros - average time (microseconds) between samples.
|
|
28
44
|
*/
|
|
29
|
-
export declare function serializeTimeProfile(prof: TimeProfile, intervalMicros: number, sourceMapper?: SourceMapper, recomputeSamplingInterval?: boolean, generateLabels?: GenerateTimeLabelsFunction, lowCardinalityLabels?: string[]): Profile;
|
|
45
|
+
export declare function serializeTimeProfile(prof: TimeProfile, intervalMicros: number, sourceMapper?: SourceMapper, recomputeSamplingInterval?: boolean, generateLabels?: GenerateTimeLabelsFunction, lowCardinalityLabels?: string[], columnNumbers?: ColumnNumbers): Profile;
|
|
30
46
|
/**
|
|
31
47
|
* Converts v8 heap profile into into a profile proto.
|
|
32
48
|
* (https://github.com/google/pprof/blob/master/proto/profile.proto)
|
|
@@ -37,4 +53,4 @@ export declare function serializeTimeProfile(prof: TimeProfile, intervalMicros:
|
|
|
37
53
|
* nanoseconds.
|
|
38
54
|
* @param intervalBytes - bytes allocated between samples.
|
|
39
55
|
*/
|
|
40
|
-
export declare function serializeHeapProfile(prof: AllocationProfileNode | AllocationProfileNodeWithStats, startTimeNanos: number, intervalBytes: number, ignoreSamplesPath?: string, sourceMapper?: SourceMapper, generateLabels?: GenerateAllocationLabelsFunction, allocations?: boolean): Profile;
|
|
56
|
+
export declare function serializeHeapProfile(prof: AllocationProfileNode | AllocationProfileNodeWithStats, startTimeNanos: number, intervalBytes: number, ignoreSamplesPath?: string, sourceMapper?: SourceMapper, generateLabels?: GenerateAllocationLabelsFunction, allocations?: boolean, columnNumbers?: ColumnNumbers): Profile;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.GARBAGE_COLLECTION_FUNCTION_NAME = exports.NON_JS_THREADS_FUNCTION_NAME = void 0;
|
|
18
|
+
exports.DEFAULT_COLUMN_NUMBERS = exports.GARBAGE_COLLECTION_FUNCTION_NAME = exports.NON_JS_THREADS_FUNCTION_NAME = void 0;
|
|
19
19
|
exports.computeTotalHitCount = computeTotalHitCount;
|
|
20
20
|
exports.serializeTimeProfile = serializeTimeProfile;
|
|
21
21
|
exports.serializeHeapProfile = serializeHeapProfile;
|
|
@@ -27,6 +27,28 @@ function isGeneratedLocation(location) {
|
|
|
27
27
|
location.line !== undefined &&
|
|
28
28
|
location.line > 0);
|
|
29
29
|
}
|
|
30
|
+
exports.DEFAULT_COLUMN_NUMBERS = 'drop';
|
|
31
|
+
/**
|
|
32
|
+
* Packs a frame's line and column into the single value carried by the pprof
|
|
33
|
+
* Line.line field: the column in the high 32 bits, the line in the low 32 bits
|
|
34
|
+
* (matching the backend's JavaScriptProfileUnminifier.decodeLineAndColumn).
|
|
35
|
+
*
|
|
36
|
+
* BigInt is required: JavaScript's bitwise operators are 32-bit, so `column <<
|
|
37
|
+
* 32` on a plain number is a no-op that returns `column` unchanged. Computing
|
|
38
|
+
* the pack arithmetically as `column * 2**32 + line` instead loses integer
|
|
39
|
+
* precision once the column exceeds 2**21 (the product passes 2**53, Number's
|
|
40
|
+
* safe-integer limit) — and minified single-line bundles routinely have columns
|
|
41
|
+
* that large.
|
|
42
|
+
*/
|
|
43
|
+
function packLineAndColumn(line, column) {
|
|
44
|
+
if (!line) {
|
|
45
|
+
return 0;
|
|
46
|
+
}
|
|
47
|
+
if (!column) {
|
|
48
|
+
return line;
|
|
49
|
+
}
|
|
50
|
+
return (BigInt(column) << 32n) | BigInt(line);
|
|
51
|
+
}
|
|
30
52
|
function requireAllocationStat(value, field) {
|
|
31
53
|
if (value === undefined) {
|
|
32
54
|
throw new Error(`Allocation profile is missing ${field}.`);
|
|
@@ -45,12 +67,13 @@ function requireAllocationStat(value, field) {
|
|
|
45
67
|
* appends these to end of an array of samples.
|
|
46
68
|
* @param stringTable - string table for the existing profile.
|
|
47
69
|
*/
|
|
48
|
-
function serialize(profile, root, appendToSamples, stringTable, ignoreSamplesPath, sourceMapper) {
|
|
70
|
+
function serialize(profile, root, appendToSamples, stringTable, ignoreSamplesPath, sourceMapper, columnNumbers = exports.DEFAULT_COLUMN_NUMBERS) {
|
|
49
71
|
const samples = [];
|
|
50
72
|
const locations = [];
|
|
51
73
|
const functions = [];
|
|
52
74
|
const functionIdMap = new Map();
|
|
53
75
|
const locationIdMap = new Map();
|
|
76
|
+
const packColumns = columnNumbers === 'pack';
|
|
54
77
|
let hasMissingMapFiles = false;
|
|
55
78
|
const entries = root.children.map((n) => ({
|
|
56
79
|
node: n,
|
|
@@ -110,9 +133,15 @@ function serialize(profile, root, appendToSamples, stringTable, ignoreSamplesPat
|
|
|
110
133
|
return location;
|
|
111
134
|
}
|
|
112
135
|
function getLine(loc, scriptId) {
|
|
136
|
+
// Only pack the column for frames whose source map was declared but missing
|
|
137
|
+
// locally — i.e. exactly the frames that will be sent for server-side
|
|
138
|
+
// unminification (the same condition that sets dd:has-missing-map-files).
|
|
139
|
+
// Locally-resolved frames keep their plain line, so packed values never
|
|
140
|
+
// reach profiles that skip server-side unminification.
|
|
141
|
+
const packColumn = packColumns && loc.missingMapFile === true;
|
|
113
142
|
return new pprof_format_1.Line({
|
|
114
143
|
functionId: getFunction(loc, scriptId).id,
|
|
115
|
-
line: loc.line,
|
|
144
|
+
line: packColumn ? packLineAndColumn(loc.line, loc.column) : loc.line,
|
|
116
145
|
});
|
|
117
146
|
}
|
|
118
147
|
function getFunction(loc, scriptId) {
|
|
@@ -287,7 +316,7 @@ function updateTimeProfile(prof) {
|
|
|
287
316
|
* @param prof - profile to be converted.
|
|
288
317
|
* @param intervalMicros - average time (microseconds) between samples.
|
|
289
318
|
*/
|
|
290
|
-
function serializeTimeProfile(prof, intervalMicros, sourceMapper, recomputeSamplingInterval = false, generateLabels, lowCardinalityLabels = []) {
|
|
319
|
+
function serializeTimeProfile(prof, intervalMicros, sourceMapper, recomputeSamplingInterval = false, generateLabels, lowCardinalityLabels = [], columnNumbers = exports.DEFAULT_COLUMN_NUMBERS) {
|
|
291
320
|
// If requested, recompute sampling interval from profile duration and total number of hits,
|
|
292
321
|
// since profile duration should be #hits x interval.
|
|
293
322
|
// Recomputing an average interval is more accurate, since in practice intervals between
|
|
@@ -385,7 +414,7 @@ function serializeTimeProfile(prof, intervalMicros, sourceMapper, recomputeSampl
|
|
|
385
414
|
period: intervalNanos,
|
|
386
415
|
};
|
|
387
416
|
const updatedProf = updateTimeProfile(prof);
|
|
388
|
-
serialize(profile, updatedProf.topDownRoot, appendTimeEntryToSamples, stringTable, undefined, sourceMapper);
|
|
417
|
+
serialize(profile, updatedProf.topDownRoot, appendTimeEntryToSamples, stringTable, undefined, sourceMapper, columnNumbers);
|
|
389
418
|
return new pprof_format_1.Profile(profile);
|
|
390
419
|
}
|
|
391
420
|
function buildLabels(labelSet, stringTable) {
|
|
@@ -419,7 +448,7 @@ function buildLabels(labelSet, stringTable) {
|
|
|
419
448
|
* nanoseconds.
|
|
420
449
|
* @param intervalBytes - bytes allocated between samples.
|
|
421
450
|
*/
|
|
422
|
-
function serializeHeapProfile(prof, startTimeNanos, intervalBytes, ignoreSamplesPath, sourceMapper, generateLabels, allocations = false) {
|
|
451
|
+
function serializeHeapProfile(prof, startTimeNanos, intervalBytes, ignoreSamplesPath, sourceMapper, generateLabels, allocations = false, columnNumbers = exports.DEFAULT_COLUMN_NUMBERS) {
|
|
423
452
|
const appendHeapEntryToSamples = (entry, samples) => {
|
|
424
453
|
if (entry.node.allocations.length > 0) {
|
|
425
454
|
const labels = generateLabels
|
|
@@ -474,7 +503,7 @@ function serializeHeapProfile(prof, startTimeNanos, intervalBytes, ignoreSamples
|
|
|
474
503
|
periodType: sampleTypes[sampleTypes.length - 1],
|
|
475
504
|
period: intervalBytes,
|
|
476
505
|
};
|
|
477
|
-
serialize(profile, prof, appendHeapEntryToSamples, stringTable, ignoreSamplesPath, sourceMapper);
|
|
506
|
+
serialize(profile, prof, appendHeapEntryToSamples, stringTable, ignoreSamplesPath, sourceMapper, columnNumbers);
|
|
478
507
|
return new pprof_format_1.Profile(profile);
|
|
479
508
|
}
|
|
480
509
|
//# 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;;;AAmRH,oDAQC;AAoFD,oDAqIC;AAoCD,oDAiGC;AAvnBD,+CAWsB;AAkBT,QAAA,4BAA4B,GAAG,yBAAyB,CAAC;AACzD,QAAA,gCAAgC,GAAG,oBAAoB,CAAC;AAwBrE,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,SAAS,qBAAqB,CAC5B,KAAyB,EACzB,KAAa;IAEb,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,iCAAiC,KAAK,GAAG,CAAC,CAAC;IAC7D,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAS,SAAS,CAChB,OAAqB,EACrB,IAAO,EACP,eAAwC,EACxC,WAAwB,EACxB,iBAA0B,EAC1B,YAA2B;IAE3B,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,SAAS,GAAe,EAAE,CAAC;IACjC,MAAM,SAAS,GAAe,EAAE,CAAC;IACjC,MAAM,aAAa,GAAG,IAAI,GAAG,EAAkB,CAAC;IAChD,MAAM,aAAa,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEhD,IAAI,kBAAkB,GAAG,KAAK,CAAC;IAE/B,MAAM,OAAO,GAAqB,IAAI,CAAC,QAAgB,CAAC,GAAG,CAAC,CAAC,CAAI,EAAE,EAAE,CAAC,CAAC;QACrE,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,EAAE;KACV,CAAC,CAAC,CAAC;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AAM,EAAE,aAAa;KACtB,CAAC;IAEF,SAAS,CACP,OAAO,EACP,IAAI,EACJ,wBAAwB,EACxB,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,aAAa,CACd,CAAC;IAEF,OAAO,IAAI,sBAAO,CAAC,OAAO,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Profile } from 'pprof-format';
|
|
17
|
+
import { ColumnNumbers } from './profile-serializer';
|
|
17
18
|
import { SourceMapper } from './sourcemapper/sourcemapper';
|
|
18
19
|
import { getNativeThreadId } from './time-profiler-bindings';
|
|
19
20
|
import { GenerateTimeLabelsFunction, TimeProfilerMetrics } from './v8-types';
|
|
@@ -37,6 +38,14 @@ export interface TimeProfilerOptions {
|
|
|
37
38
|
collectCpuTime?: boolean;
|
|
38
39
|
collectAsyncId?: boolean;
|
|
39
40
|
useCPED?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Controls how frame column numbers are represented in the serialized
|
|
43
|
+
* profile. Defaults to `'drop'` (column omitted) to preserve the historical
|
|
44
|
+
* line-number semantics for existing consumers. Set to `'pack'` to pack the
|
|
45
|
+
* column into the high 32 bits of the line field for backends that support
|
|
46
|
+
* it (e.g. Datadog's JS/Node deobfuscation). See {@link ColumnNumbers}.
|
|
47
|
+
*/
|
|
48
|
+
columnNumbers?: ColumnNumbers;
|
|
40
49
|
}
|
|
41
50
|
export declare function profile(options?: TimeProfilerOptions): Promise<Profile>;
|
|
42
51
|
export declare function profileV2(options?: TimeProfilerOptions): Promise<any>;
|
package/out/src/time-profiler.js
CHANGED
|
@@ -41,6 +41,7 @@ let gProfiler;
|
|
|
41
41
|
let gStore;
|
|
42
42
|
let gSourceMapper;
|
|
43
43
|
let gIntervalMicros;
|
|
44
|
+
let gColumnNumbers = profile_serializer_1.DEFAULT_COLUMN_NUMBERS;
|
|
44
45
|
let gV8ProfilerStuckEventLoopDetected = 0;
|
|
45
46
|
function handleStopRestart() {
|
|
46
47
|
if (!gProfiler) {
|
|
@@ -81,6 +82,7 @@ const DEFAULT_OPTIONS = {
|
|
|
81
82
|
collectCpuTime: false,
|
|
82
83
|
collectAsyncId: false,
|
|
83
84
|
useCPED: false,
|
|
85
|
+
columnNumbers: profile_serializer_1.DEFAULT_COLUMN_NUMBERS,
|
|
84
86
|
};
|
|
85
87
|
async function profile(options = {}) {
|
|
86
88
|
options = { ...DEFAULT_OPTIONS, ...options };
|
|
@@ -104,6 +106,7 @@ function start(options = {}) {
|
|
|
104
106
|
gProfiler = new time_profiler_bindings_1.TimeProfiler({ ...options, CPEDKey: store, isMainThread: worker_threads_1.isMainThread });
|
|
105
107
|
gSourceMapper = options.sourceMapper;
|
|
106
108
|
gIntervalMicros = options.intervalMicros;
|
|
109
|
+
gColumnNumbers = options.columnNumbers ?? profile_serializer_1.DEFAULT_COLUMN_NUMBERS;
|
|
107
110
|
gV8ProfilerStuckEventLoopDetected = 0;
|
|
108
111
|
gProfiler.start();
|
|
109
112
|
gStore = store;
|
|
@@ -123,7 +126,7 @@ function stop(restart = false, generateLabels, lowCardinalityLabels) {
|
|
|
123
126
|
// source mapper, so the source-map resolution below is unaffected.
|
|
124
127
|
handleStopRestart();
|
|
125
128
|
}
|
|
126
|
-
const serializedProfile = (0, profile_serializer_1.serializeTimeProfile)(profile, gIntervalMicros, gSourceMapper, true, generateLabels, lowCardinalityLabels);
|
|
129
|
+
const serializedProfile = (0, profile_serializer_1.serializeTimeProfile)(profile, gIntervalMicros, gSourceMapper, true, generateLabels, lowCardinalityLabels, gColumnNumbers);
|
|
127
130
|
if (!restart) {
|
|
128
131
|
// Tear down *after* serializing: handleStopNoRestart() clears gSourceMapper
|
|
129
132
|
// (and disposes gProfiler), so serializing afterwards would drop source-map
|
|
@@ -142,7 +145,7 @@ function stopV2(restart = false, generateLabels, lowCardinalityLabels) {
|
|
|
142
145
|
if (!gProfiler) {
|
|
143
146
|
throw new Error('Wall profiler is not started');
|
|
144
147
|
}
|
|
145
|
-
const serializedProfile = gProfiler.stopAndCollect(restart, (profile) => (0, profile_serializer_1.serializeTimeProfile)(profile, gIntervalMicros, gSourceMapper, true, generateLabels, lowCardinalityLabels));
|
|
148
|
+
const serializedProfile = gProfiler.stopAndCollect(restart, (profile) => (0, profile_serializer_1.serializeTimeProfile)(profile, gIntervalMicros, gSourceMapper, true, generateLabels, lowCardinalityLabels, gColumnNumbers));
|
|
146
149
|
if (restart) {
|
|
147
150
|
handleStopRestart();
|
|
148
151
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-profiler.js","sourceRoot":"","sources":["../../ts/src/time-profiler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;
|
|
1
|
+
{"version":3,"file":"time-profiler.js","sourceRoot":"","sources":["../../ts/src/time-profiler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAyHH,0BAOC;AAED,8BAKC;AAGD,sBAoBC;AAED,oBAqCC;AAOD,wBA4BC;AAED,4BAKC;AAED,gCAKC;AAED,wCAWC;AAED,gCAKC;AAED,gCAKC;AAED,8BAEC;AAGD,4EAEC;AAxRD,8CAA2C;AAG3C,6DAM8B;AAE9B,qEAIkC;AAgR1B,kGAlRN,0CAAiB,OAkRM;AA1QzB,mDAA4C;AAC5C,6CAA8C;AAC9C,MAAM,EAAC,YAAY,EAAC,GAAG,kCAAiB,CAAC;AAEzC,MAAM,uBAAuB,GAAiB,IAAI,CAAC;AACnD,MAAM,uBAAuB,GAAiB,KAAK,CAAC;AAYpD,IAAI,SAAyC,CAAC;AAC9C,IAAI,MAA8C,CAAC;AACnD,IAAI,aAAuC,CAAC;AAC5C,IAAI,eAA6B,CAAC;AAClC,IAAI,cAAc,GAAkB,2CAAsB,CAAC;AAC3D,IAAI,iCAAiC,GAAG,CAAC,CAAC;AAE1C,SAAS,iBAAiB;IACxB,IAAI,CAAC,SAAS,EAAE,CAAC;QAC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
|
+
"version": "5.17.0",
|
|
4
4
|
"description": "pprof support for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"main": "out/src/index.js",
|
|
10
10
|
"types": "out/src/index.d.ts",
|
|
11
|
+
"gypfile": false,
|
|
11
12
|
"scripts": {
|
|
12
13
|
"build:asan": "node-gyp configure build --jobs=max --address_sanitizer",
|
|
13
14
|
"build:tsan": "node-gyp configure build --jobs=max --thread_sanitizer",
|
|
@@ -16,7 +17,6 @@
|
|
|
16
17
|
"compile": "tsc -p .",
|
|
17
18
|
"fix": "gts fix",
|
|
18
19
|
"format": "clang-format --style file -i --glob='bindings/**/*.{h,hh,cpp,cc}'",
|
|
19
|
-
"install": "exit 0",
|
|
20
20
|
"lint": "jsgl --local . && gts check && clang-format --style file -n -Werror --glob='bindings/**/*.{h,hh,cpp,cc}'",
|
|
21
21
|
"prepare": "npm run compile && npm run rebuild",
|
|
22
22
|
"pretest:js-asan": "npm run compile && npm run build:asan",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"test:js-tsan": "LD_PRELOAD=`gcc -print-file-name=libtsan.so` mocha out/test/test-*.js",
|
|
30
30
|
"test:js-valgrind": "valgrind --leak-check=full mocha out/test/test-*.js",
|
|
31
31
|
"test:js": "nyc mocha -r source-map-support/register out/test/test-*.js",
|
|
32
|
-
"test": "npm run test:js"
|
|
32
|
+
"test": "npm run test:js",
|
|
33
|
+
"test:docker": "./scripts/docker/run-in-docker.sh"
|
|
33
34
|
},
|
|
34
35
|
"author": {
|
|
35
36
|
"name": "Google Inc."
|
|
@@ -38,27 +39,27 @@
|
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"node-gyp-build": "^4.8.4",
|
|
40
41
|
"pprof-format": "^2.2.1",
|
|
41
|
-
"source-map": "^0.
|
|
42
|
+
"source-map": "^0.8.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@types/mocha": "^10.0.1",
|
|
45
|
-
"@types/node": "
|
|
46
|
+
"@types/node": "26.1.1",
|
|
46
47
|
"@types/semver": "^7.5.8",
|
|
47
|
-
"@types/sinon": "^
|
|
48
|
+
"@types/sinon": "^22.0.0",
|
|
48
49
|
"@types/tmp": "^0.2.3",
|
|
49
50
|
"clang-format": "^1.8.0",
|
|
50
51
|
"codecov": "^3.8.3",
|
|
51
52
|
"deep-copy": "^1.4.2",
|
|
52
|
-
"eslint-plugin-n": "^18.
|
|
53
|
+
"eslint-plugin-n": "^18.2.2",
|
|
53
54
|
"gts": "^7.0.0",
|
|
54
55
|
"js-green-licenses": "^4.0.0",
|
|
55
56
|
"mocha": "^11.7.6",
|
|
56
|
-
"nan": "^2.
|
|
57
|
+
"nan": "^2.28.0",
|
|
57
58
|
"nyc": "^18.0.0",
|
|
58
|
-
"semver": "^7.8.
|
|
59
|
-
"sinon": "^22.
|
|
59
|
+
"semver": "^7.8.5",
|
|
60
|
+
"sinon": "^22.1.0",
|
|
60
61
|
"source-map-support": "^0.5.21",
|
|
61
|
-
"tmp": "0.2.
|
|
62
|
+
"tmp": "0.2.7",
|
|
62
63
|
"typescript": "^6.0.3"
|
|
63
64
|
},
|
|
64
65
|
"files": [
|
|
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
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|