add an env var for enabling the profiler

Review Request #1305 - Created Nov. 7, 2014 and submitted

Information
Nick Howard (Twitter)
pants
436cbfa...
Reviewers
pants-reviews
jsirois, lahosken, tejal

This adds PANTS_PROFILE, which if exported, will add the cProfiler module to the python command run to execute pants.
It should be set to the file you want the profile results to be dumped to. eg

  PANTS_PROFILE=results ./pants goal list ::

You can then pass the pstats formatted file into an analyzer, or a graph generator to see where that run spent its time.


  

Issues

  • 0
  • 2
  • 0
  • 2
Description From Last Updated
Larry Hosken
Eric Ayers
Nick Howard (Twitter)
Larry Hosken
Larry Hosken
Nick Howard (Twitter)
Nick Howard (Twitter)
Andy Reitz
Larry Hosken
Nick Howard (Twitter)
Larry Hosken
Tejal Desai
John Sirois
Patrick Lawson
Nick Howard (Twitter)
David Turner
Nick Howard (Twitter)
Review request changed

Status: Closed (submitted)

Loading...