Skip to content

Port per-phase profiling from scalac #2909

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

Closed
smarter opened this issue Jul 24, 2017 · 0 comments
Closed

Port per-phase profiling from scalac #2909

smarter opened this issue Jul 24, 2017 · 0 comments

Comments

@smarter
Copy link
Member

smarter commented Jul 24, 2017

This seems like something we could use, I especially like the external tool hook allowing profilers such as Yourkit to instrument a single phase: scala/scala#5848

Add support for phase profiling generating inforamtion per phase:
  - Wall Clock Time (ms) - wall clock time
  - Idle Time (ms) - time blocked
  - cpu time (ms) - reported cpu time
  - user time (ms) - reported user time
  - allocated (mb) - bytes allocated during phase
  - retainedHeap (mb) - retained heap after phase (enable GC for more accurate counts)
  - gcTime (ms) - time spent in GC.

Adds four flags:

-Yprofile-enabled
  Add per phase profiling information

-Yprofile-destination:<file>
  Where to write profiling information (defaults to console if not set)

-Yprofile-run-gc
  Run GC between phases to help gemerate more more accurate memory usage in profiling

-Yprofile-external-tool:<phase>
  Enable calling of ExternalToolHook.before/after around the target phase
@allanrenucci allanrenucci self-assigned this Oct 3, 2017
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Jan 11, 2018
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Jan 18, 2018
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Jan 18, 2018
smarter added a commit that referenced this issue Jan 30, 2018
Fix #2909: Port per-phase profiling from scalac
odersky pushed a commit to dotty-staging/dotty that referenced this issue Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants