Skip to content

cmd/pprof: redundant TMPDIRs #16178

@dsnet

Description

@dsnet

Using go1.7beta2

The pprof tool has at least two TMPDIRs:

  • One that it can take from $PPROF_TMPDIR, and defaults to $HOME/pprof. As far as I can tell, this directory is only ever used when pprof is operating remotely. This pprof directory is never deleted after it is used. So if pprof is used locally, it keeps generating empty pprof directories in a user $HOME directory and never cleans them up.
  • The other temporary directory, it generates on the fly when it needs to invoke some type of visualizer for HTML, SVG, GIF, etc... pprof now properly cleans this directory up.

Why have two different variations of TMPDIRs? Why doesn't pprof clean itself up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions