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

RESOLVED FIXED in mozilla35

Status

()

RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: njn, Assigned: njn)

Tracking

unspecified
mozilla35
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

4 years ago
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.
(Assignee)

Comment 1

4 years ago
Created attachment 8484728 [details] [diff] [review]
Print to the console the paths of all files that DMD opens

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+
https://hg.mozilla.org/mozilla-central/rev/f83374a6c136
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in before you can comment on or make changes to this bug.