Modify

Opened 6 years ago

Last modified 6 years ago

#1232 reopened enhancement

Improve output format of Carpet timer trees

Reported by: Erik Schnetter Owned by: Erik Schnetter
Priority: minor Milestone:
Component: Carpet Version:
Keywords: Cc: Marek Blazewicz <marqs@…>

Description

Marek Blazewicz reports:

I was using the timer tree in Carpet. Because it was not too nicely
outputted, and I had to format it manually each time, I've fixed it ;).

Attachments (1)

carpet_tree.patch (3.0 KB) - added by Erik Schnetter 6 years ago.

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by Erik Schnetter

Attachment: carpet_tree.patch added

comment:1 Changed 6 years ago by Erik Schnetter

Status: newreview

comment:2 Changed 6 years ago by Frank Löffler

Status: reviewreviewed_ok

Please apply

comment:3 Changed 6 years ago by Erik Schnetter

Marek says:

First for "untimed", the precision was 1, always. I unified it with other lines.

Secondly I've changed the width of the column float field (duration in s.) to the maximal printed length. These are # digits before decimal sep. (.) + 1 for dec. sep. + precision. The length of the field is computed once (log10(total time (which I assume is the largest number))) and passed to children via recurrence, to avoid unnecessary computations.

For '%' of total time I've used constant equation: 3 (log(100) + 1) + 1 + precision.

Thanks to these changes the time tree looks like tree ;)

comment:4 Changed 6 years ago by Frank Löffler

Status: reviewed_okreopened

The patch no longer applies, and since the output format seems to have changed in the meantime, there is no quick way to see how to merge.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as reopened The owner will remain Erik Schnetter.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from Erik Schnetter to the specified user.
The owner will be changed from Erik Schnetter to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.