-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added nodejs cpu profiler support (#19)
* feat: added nodejs cpu profiler support * fix: fixed error in package.json * fix: fixing test * fix: update jest config * chore: update naming for tagWrapper for consistency * test: added tests for cpu profiler * chore: updated jest config * fix: hotpatch period value * test: added amazon linux to test suite * chore: added idle notification on wall profiling * Revert "test: added amazon linux to test suite" This reverts commit c9c017f. * refactor: make tagwrapper interface similar to python and go * test: more tests on cpu & wall profiling * docs: updated readme file * chore: constants replaced with named values * fix: added fix for nanoseconds * feat: added emitter to be able to test profiles * test: added cpu label tests * add node 19 for testing * fix freq * flush last sample during cpu stop * fix wall sample type config * stop cpu timer sync * upgrade to dd-pprof 2.0.0 * version bump * "should allow to start cpu and wall profiling at the same time" * fix tests * make stopCpuProfiling async * fix cpu flushing * flush heap on stop * add some heap configuration options * maybe fix tests * reformat heap.ts * unified logic for profiling scheduling and cancelation * fix sampletype conig again * strip cwd from filenames * feat: wip * chore: remove unused module name mapper config * updates min version * post merge fixes * auth fixes * updates version * test fixes --------- Co-authored-by: Tolya Korniltsev <[email protected]> Co-authored-by: Roberto Pintos López <[email protected]> Co-authored-by: Dmitry Filimonov <[email protected]>
- Loading branch information
1 parent
9162a2f
commit d63816f
Showing
30 changed files
with
10,674 additions
and
6,313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
.idea/ | ||
# Logs | ||
logs | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,21 @@ | ||
module.exports = { | ||
"roots": [ | ||
"src", | ||
"test" | ||
], | ||
moduleNameMapper: { | ||
'^@pyroscope/nodejs$': '<rootDir>/src', | ||
"./express.js": "<rootDir>/src/express.ts", | ||
"./index.js": "<rootDir>/src/index.ts" | ||
}, | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
roots: ['src', 'test'], | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
collectCoverage: true, | ||
collectCoverageFrom: [ | ||
"src/**/*.{ts,tsx}", | ||
"test/**/*.{ts,js}", | ||
"!**/node_modules/**", | ||
"!**/vendor/**" | ||
'src/**/*.{ts,tsx}', | ||
'test/**/*.{ts,js}', | ||
'!**/node_modules/**', | ||
'!**/vendor/**', | ||
], | ||
transform: { | ||
"^.+\\.tsx?$": "ts-jest", | ||
'^.+\\.tsx?$': 'ts-jest', | ||
}, | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: './config/tsconfig.jest.json', | ||
}, | ||
}, | ||
"extensionsToTreatAsEsm": [".ts"] | ||
extensionsToTreatAsEsm: ['.ts'], | ||
} |
Oops, something went wrong.