Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docs for external profiling #28538

Merged
merged 1 commit into from
Aug 11, 2018

Conversation

fisiognomico
Copy link
Contributor

No description provided.

Depending on the tool you choose, compile with `USE_INTEL_JITEVENTS`, `USE_OPROFILE_JITEVENTS` and
`USE_PERF_JITEVENTS` set to 1 in `Make.user`. Multiple flags are supported.

Also before running Julia set the environment variable `ENABLE_JITPROFILING` to 1.
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Remove also

# External Profiling

Currently Julia supports `Intel VTune`, `OProfile` and `perf` as external profiling tools.
The interfaces are all maintained as LLVM modules, and they support code annotations.
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

I think this sentence can be dropped

For example with `OProfile` you can try a simple recording :

```
>sudo operf -Vdebug ./julia test/fastmath.jl
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

I think having the environment variables as part of the script so that copy-paste just works, would be good

There are many more interesting things that you can measure about your program, to get a comprehensive list
please read the [Linux perf examples page](http:https://www.brendangregg.com/perf.html).

Rember that perf saves for each execution a `perf.data` file that, even for small programs, can get
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Remember

please read the [Linux perf examples page](http:https://www.brendangregg.com/perf.html).

Rember that perf saves for each execution a `perf.data` file that, even for small programs, can get
a relevant size. Also the perf LLVM module saves temporarly debug objects in `~/.debug/jit`, remember
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

can get quite large

Copy link
Contributor

Choose a reason for hiding this comment

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

"temporarly" -> "temporary"?

@vchuravy vchuravy merged commit 0d050ac into JuliaLang:master Aug 11, 2018
@KristofferC KristofferC added backport pending 1.0 domain:docs This change adds or pertains to documentation labels Oct 19, 2018
KristofferC pushed a commit that referenced this pull request Oct 19, 2018
KristofferC pushed a commit that referenced this pull request Oct 19, 2018
KristofferC pushed a commit that referenced this pull request Feb 11, 2019
KristofferC pushed a commit that referenced this pull request Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants