feat(profiler): replace sourceMapCount with hasMissingSourceMaps#7843
Merged
feat(profiler): replace sourceMapCount with hasMissingSourceMaps#7843
Conversation
Contributor
Overall package sizeSelf size: 5.04 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
BenchmarksBenchmark execution time: 2026-03-23 14:28:34 Comparing candidate commit f994206 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 229 metrics, 31 unstable metrics. |
Replace the `sourceMapCount` info field with a boolean `hasMissingSourceMaps` that checks each profile's comments for the `dd:has-missing-map-files` token emitted by @datadog/pprof when source files declare a sourceMappingURL but the map file is missing. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
19b51b2 to
f994206
Compare
Contributor
Author
|
Force pushed to rebase on current master |
dd-octo-sts bot
pushed a commit
that referenced
this pull request
Mar 24, 2026
Replace the `sourceMapCount` info field with a boolean `hasMissingSourceMaps` that checks each profile's comments for the `dd:has-missing-map-files` token emitted by @datadog/pprof when source files declare a sourceMappingURL but the map file is missing. Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Merged
tlhunter
pushed a commit
that referenced
this pull request
Mar 26, 2026
Replace the `sourceMapCount` info field with a boolean `hasMissingSourceMaps` that checks each profile's comments for the `dd:has-missing-map-files` token emitted by @datadog/pprof when source files declare a sourceMappingURL but the map file is missing. Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With this PR, we can precisely indicate whether any samples contain unmapped locations (and thus the backend should attempt server-side source mapping.) We currently have a cruder indicator, the number of source maps in the app directory, but we can now replace this with a much more precise indicator that leverages the source map handling improvements in
@datadog/pprof5.14.0.Summary
sourceMapCountnumeric info field from profiler metadatahasMissingSourceMapsboolean that is always present and reflects the value with which@datadog/pprofindicates that some samples were not mapped due to an expected source map file not being present.Depends on DataDog/pprof-nodejs#298 and #5906.
Test plan
hasMissingSourceMapsistruewhen profile contains the comment token,falseotherwise🤖 Generated with Claude Code
Jira: PROF-13985