Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datadog/pprof",
"version": "5.13.0",
"version": "5.13.1",
"description": "pprof support for Node.js",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const time = {
v8ProfilerStuckEventLoopDetected:
timeProfiler.v8ProfilerStuckEventLoopDetected,
getState: timeProfiler.getState,
getMetrics: timeProfiler.getMetrics,
constants: timeProfiler.constants,
};

Expand Down
4 changes: 2 additions & 2 deletions ts/test/test-time-profiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import delay from 'delay';
import * as sinon from 'sinon';
import * as time from '../src/time-profiler';
import {time, getNativeThreadId} from '../src';
import * as v8TimeProfiler from '../src/time-profiler-bindings';
import {timeProfile, v8TimeProfile} from './profiles-for-tests';
import {hrtime} from 'process';
Expand Down Expand Up @@ -739,7 +739,7 @@ describe('Time Profiler', () => {

describe('getNativeThreadId', () => {
it('should return a number', () => {
const threadId = time.getNativeThreadId();
const threadId = getNativeThreadId();
assert.ok(typeof threadId === 'number');
assert.ok(threadId > 0);
});
Expand Down