Closed Bug 1063321 Opened 11 years ago Closed 11 years ago

Print to the console the paths of all files that DMD opens

Categories

(Core :: DMD, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

Attachments

(1 file)

Bug 1061066 changed DMD so it dumps output to the temp directory. On Linux that's /tmp, but on Mac it's $HOME/Library/Caches/TemporaryItems, which is so non-obvious that I had to add a debugging printf to the code to learn where it was. Let's fix that.
This patch adds an extra line to the console output when a DMD file is opened, viz: > DMD[22021] opened /tmp/dmd-1409885041-22021.txt.gz for writing > DMD[22021] AnalyzeReports 1 { > DMD[22021] gathering heap block records... > DMD[22021] creating and sorting twice-reported heap block record array... > DMD[22021] creating and sorting unreported heap block record array... > DMD[22021] printing unreported heap block record array... > DMD[22021] creating and sorting once-reported heap block record array... > DMD[22021] printing once-reported heap block record array... > DMD[22021] } It's not superb, but it's much better than nothing, and the other options involved *much* more plumbing.
Attachment #8484728 - Flags: review?(continuation)
Comment on attachment 8484728 [details] [diff] [review] Print to the console the paths of all files that DMD opens Review of attachment 8484728 [details] [diff] [review]: ----------------------------------------------------------------- Yeah the OSX temp dir is a pain.
Attachment #8484728 - Flags: review?(continuation) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: