Opened 3 years ago

Closed 3 years ago

#5474 closed feature request (duplicate)

Add facility for emitting heap profile marker

Reported by: hvr Owned by:
Priority: normal Milestone:
Component: Profiling Version:
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

When analysing heap profile diagrams I often want correlate certain points in the program execution with the corresponding point in the heap profiling diagram.

Currently, I resort to causing flatlines by burning cpu cycles with some dummy calculations which don't cause too much GC activity. But this is just a crutch, and doesn't work too well for concurrent/parallel Haskell programs.

It would be helpful to have a GHC facility to emit custom marker "events" (maybe with an user-suppliable associated numeric identifier to differentiate between multiple markers) to the heap-profile which could then be directly looked up in the resulting heap profile diagram (rather than having to recognize geometric graph features in the diagram).

Change History (1)

comment:1 Changed 3 years ago by simonmar

  • Resolution set to duplicate
  • Status changed from new to closed

already have a ticket for this: #3021

Note: See TracTickets for help on using tickets.