Skip to content

improve tracy docs - #4117

Merged
bjacob merged 3 commits into
iree-org:mainfrom
bjacob:tracy-docs
Dec 9, 2020
Merged

bjacob merged 3 commits into
iree-org:mainfrom
bjacob:tracy-docs

Conversation

@bjacob

@bjacob bjacob commented Dec 7, 2020

Copy link
Copy Markdown
Collaborator

No description provided.

@google-cla google-cla Bot added the cla: yes label Dec 7, 2020
@bjacob
bjacob requested review from ScottTodd and benvanik December 7, 2020 20:54
window](https://gist.githubusercontent.com/bjacob/ff7dec20c1dfc7d0fc556cc7275bca9a/raw/fe4e22ca0301ebbfd537c47332a4a2c300a417b3/tracy_statistics.jpeg)

See how the above screenshot has two radio buttons at the top: 'Instrumentation'
and 'Sampling'. At this point, if you don't a the 'Sampling' radio button, you

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

typo?

Suggested change
and 'Sampling'. At this point, if you don't a the 'Sampling' radio button, you
and 'Sampling'. At this point, if you don't see the 'Sampling' radio button, you

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.

thanks!

Comment on lines +200 to +210
These 'Instrumentation' and 'Sampling' statistics correspond the two kinds of
data that Tracy collects about your program. In the Tracy main view, they
correspond, respectively, to 'normal' and 'ghost' zones. For each thread, the
ghost icon toggles the view between these two kinds of zones. 'Normal' zones are
explicitly recorded by the instrumented program, with timestamps. The stacks
shown are stacks of Tracy instrumentation zones, not real call stacks. 'Ghost'
zones are obtained by Tracy sampling the thread's real call stack at a frequency
of typically roughly 10 kHz. Only ghost zones have the data to show the time
spent on a line-by-line or instruction-by-instruction basis. That's why when we
actually click on a zone, we get a very different view depending on whether it's
a normal or a ghost zone.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If this gets more comprehensive, I'd suggest referring people to the Tracy manual for a general introduction to Tracy and then focusing our docs on what is noteworthy about IREE (e.g. which threads and event patterns to look for).

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.

good point, linked and trimmed this text.

@ScottTodd ScottTodd added the documentation ✏️ Improvements or additions to documentation label Dec 8, 2020
@bjacob
bjacob merged commit fdb88b9 into iree-org:main Dec 9, 2020
This was referenced Dec 10, 2020
@hanhanW hanhanW mentioned this pull request Dec 10, 2020
copybara-service Bot pushed a commit that referenced this pull request Dec 10, 2020
* 1b71cac Adding hal.interface.workgroup.* ops. (#4149)
* 04b7c37 Add ctests for the tensorflow/e2e directory.
* c3fc9a1 Remove all !r from python f-strings (#4157)
* fdb88b9 improve tracy docs (#4117)
* 204f652 Write the doc page on profiling cpu events (#4126)
* 613efa8 Add build instructions to python getting started (#4153)
* d889ac1 Revert "Fix missing f-string (#4150)"
* aaa08b1 Enable dylib-llvm-aot tests and switch from testing JIT to AOT. (#3928)
* cb1e46e Refactor and normalization of mhlo convolutions (#4113)
* 0590b3c Fix missing f-string (#4150)
* 2f7cab5 Check in BuildKite pipeline for android tests (#4137)
* c195ae9 Fix types for std::min on MSVC. (#4148)
* 5fefe30 Integrate MLIR-EmitC at iml130/mlir-emitc@a438d3b (#4145)
* f03307d Fix ImGui function in iree-run-module-vulkan-gui-main. (#4147)

COPYBARA_INTEGRATE_REVIEW=#4168 from hanhanW:main-to-google 7c443d3
PiperOrigin-RevId: 346812805
hanhanW added a commit that referenced this pull request Dec 10, 2020
* 1b71cac Adding hal.interface.workgroup.* ops. (#4149)
* 04b7c37 Add ctests for the tensorflow/e2e directory.
* c3fc9a1 Remove all !r from python f-strings (#4157)
* fdb88b9 improve tracy docs (#4117)
* 204f652 Write the doc page on profiling cpu events (#4126)
* 613efa8 Add build instructions to python getting started (#4153)
* d889ac1 Revert "Fix missing f-string (#4150)"
* aaa08b1 Enable dylib-llvm-aot tests and switch from testing JIT to AOT. (#3928)
* cb1e46e Refactor and normalization of mhlo convolutions (#4113)
* 0590b3c Fix missing f-string (#4150)
* 2f7cab5 Check in BuildKite pipeline for android tests (#4137)
* c195ae9 Fix types for std::min on MSVC. (#4148)
* 5fefe30 Integrate MLIR-EmitC at iml130/mlir-emitc@a438d3b (#4145)
* f03307d Fix ImGui function in iree-run-module-vulkan-gui-main. (#4147)

COPYBARA_INTEGRATE_REVIEW=#4168 from hanhanW:main-to-google 7c443d3
PiperOrigin-RevId: 346812805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation ✏️ Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants