You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(hydro_deploy): handle -1 addresses from samply, fix _counter() rollover (#1814)
This fixes samply profiling on my "ancient" 2019 x86-64 macbook pro
15.3.2 (24D81)
This pull request aims to fix the handling of –1 address values from
samply by updating tracing filenames and refactoring related error and
type handling. Key changes include:
- Better error messages when `dtrace` or `samply` are not instaled.
- Fix integer rollover in `_counter()` by using `u64` instead of
inferred `i32`.
- Refactor samply profile conversion for asynchronous frame lookup.
<details>
<summary>Show a summary per file</summary>
| File | Description |
| ---- | ----------- |
| hydro_lang/src/rewrites/analyze_counter.rs | Adds custom panic with
measurement details if regex matching fails. (Used to diagnose
`_counter()` `i32` rollover) |
| hydro_deploy/core/src/localhost/samply.rs | Updates type for
addresses/resources, refactors frame lookup to use asynchronous
join_all, and adjusts string output for missing symbols. |
| hydro_deploy/core/src/localhost/mod.rs | Improves error handling
during command spawning with conditional context messages for when
`samply` or `dtrace` executables are not found. |
| hydro_deploy/core/src/localhost/launched_binary.rs | Uses
serde_path_to_error for improved deserialization error context. |
| dfir_lang/src/graph/ops/dest_sink.rs | Standardizes error messages by
removing extraneous punctuation. |
| dfir_lang/src/graph/ops/_counter.rs | Adds explicit type annotation
for a cell initialization to prevent `i32` rollover. |
</details>
0 commit comments