To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=60948
Issue #:|60948
Summary:|Add profiling output to dmake
Component:|tools
Version:|current
Platform:|All
URL:|
OS/Version:|Windows, all
Status:|NEW
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|dmake
Assigned to:|vq
Reported by:|vq
------- Additional comments from [EMAIL PROTECTED] Sat Jan 21 09:44:54 -0800
2006 -------
Following a suggestion from Kai I implemented a proof of concept patch (hack ;)
for dmake to output profiling information.
It outputs the start and end time for each target and also the start and end
time for each recipe line, like this:
If a target is beeing started to make it looks like this:
(The number is the unix time in seconds since 1970 (or so) and the string
behind the number is the target name (all2 in this case))
s target 1137863769 all2
When a recipe starts it prints:
s recipe 1137863769 all2
When it ends:
e recipe 1137863769 all2
And when all recipe lines are made it prints:
e target 1137863769 all2
For this example makefile:
-- snip --
SHELL*:=/bin/sh
SHELLFLAGS*:=-ce
all: all2
+echo all-1
+echo all-2
all2:
+echo all2
-- snap --
You get this output:
$ dmake/dmake.exe -P2 -r
s target 1137863769 all2
echo all2
s recipe 1137863769 all2
all2
e recipe 1137863769 all2
e target 1137863769 all2
s target 1137863769 all
echo all-1
s recipe 1137863769 all
echo all-2
all-1
e recipe 1137863769 all
s recipe 1137863769 all
all-2
e recipe 1137863769 all
e target 1137863769 all
s target 1137863769 .TARGETS
e target 1137863769 .TARGETS
s target 1137863769 .ROOT
e target 1137863769 .ROOT
(.ROOT and .TARGETS are internal targets, ignore them ;) )
It even works for parallel builds ;) Unfortunately all commands are so fast that
everything is executed in the same second, but you get the idea. ;)
If someone tells me a nice name for this switch, or two for seperately
controling target and recipe information I will implement it into dmake43p01.
Suggestions are welcome!
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]