Opened 2 years ago

Closed 2 years ago

#5640 closed bug (fixed)

Retainer profiling broken

Reported by: augustss Owned by:
Priority: normal Milestone: 7.4.1
Component: Profiling Version: 7.2.1
Keywords: Cc:
Operating System: Windows Architecture: x86_64 (amd64)
Type of failure: Incorrect result at runtime Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I tried to profile with the following flags:

foo +RTS -i0.5 -hr -hcTransformType -RTS ...

The resulting .hp file has currupt time stamps. Here they are:

BEGIN_SAMPLE 0.00
BEGIN_SAMPLE 0.79
BEGIN_SAMPLE 1.38
BEGIN_SAMPLE 1.65
BEGIN_SAMPLE 1.31
BEGIN_SAMPLE 0.4294967237
BEGIN_SAMPLE 4294967294.4294967266
BEGIN_SAMPLE 4294967294.4294967266
BEGIN_SAMPLE 4294967294.4294967291
BEGIN_SAMPLE 4294967295.4294967212
BEGIN_SAMPLE 4294967295.4294967220
BEGIN_SAMPLE 4294967295.4294967223
BEGIN_SAMPLE 4294967295.4294967225
BEGIN_SAMPLE 4294967295.4294967217
BEGIN_SAMPLE 4294967295.4294967206
BEGIN_SAMPLE 4294967295.4294967264

Change History (2)

comment:1 Changed 2 years ago by igloo

  • Milestone set to 7.4.1
  • Status changed from new to infoneeded

Do you have a testcase with which we can reproduce the problem, please?

comment:2 Changed 2 years ago by simonmar

  • Resolution set to fixed
  • Status changed from infoneeded to closed

I think I fixed this.

commit bd72eeb184a95ae0ae79ccad19c8ccc2b45a12e0

Author: Simon Marlow <marlowsd@gmail.com>
Date:   Wed Oct 26 15:15:50 2011 +0100

    fix time calculation for retainer profiling

Optimistically closing the ticket.

Note: See TracTickets for help on using tickets.