Skip to content

Timeline thread names#427

Merged
r1viollet merged 2 commits into
mainfrom
r1viollet/timeline_thread_names
Oct 8, 2024
Merged

Timeline thread names#427
r1viollet merged 2 commits into
mainfrom
r1viollet/timeline_thread_names

Conversation

@r1viollet

Copy link
Copy Markdown
Collaborator

What does this PR do?

Ensure we have thread names / process name in the timeline

Motivation

This makes the timeline easier to read

Additional Notes

This has some amount of overhead
I left the timeline trigger to allow the fallback
There is no new lookup if we have a thread name change.

How to test the change?

Using timeline you should know see thread names.

Comment thread src/unwind.cc

void add_container_id(Process &process, UnwindState *us) {
auto container_id = process.get_container_id();
const auto &container_id = process.get_container_id();

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is slightly controversial, though the lifetime of the container ID should be tied to the process, which will outlive the aggregation of the sample

nsavoire
nsavoire previously approved these changes Oct 7, 2024
@nsavoire

nsavoire commented Oct 7, 2024

Copy link
Copy Markdown
Collaborator

Build is failing

@r1viollet
r1viollet force-pushed the r1viollet/timeline_thread_names branch from 86bf3c1 to 3e62c18 Compare October 8, 2024 07:43
@pr-commenter

pr-commenter Bot commented Oct 8, 2024

Copy link
Copy Markdown

Benchmark results for collatz

Parameters

Baseline Candidate
config baseline candidate
profiler-version ddprof 0.18.0+89b6d8ad.45940580 ddprof 0.18.0+3e62c181.46038058

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean execution_time
scenario:ddprof -S bench-collatz --preset cpu_only collatz_runner.sh same

@pr-commenter

pr-commenter Bot commented Oct 8, 2024

Copy link
Copy Markdown

Benchmark results for BadBoggleSolver_run

Parameters

Baseline Candidate
config baseline candidate
profiler-version ddprof 0.18.0+89b6d8ad.45940580 ddprof 0.18.0+3e62c181.46038058

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean execution_time
scenario:ddprof -S bench-bad-boggle-solver BadBoggleSolver_run work 1000 same

@r1viollet

Copy link
Copy Markdown
Collaborator Author

Build is failing

Thanks, I think we are fine now.

@r1viollet
r1viollet requested a review from nsavoire October 8, 2024 09:29
@r1viollet
r1viollet merged commit 09d59ab into main Oct 8, 2024
@r1viollet
r1viollet deleted the r1viollet/timeline_thread_names branch October 8, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants