|
From: Philippe W. <phi...@sk...> - 2008-09-24 16:01:20
|
I have started implementing user snapshot and "user delta snapshot" in massif.
This mail describes what I have already done and what I will (try to) do next,
so as to get feedback about what I have done and intends to do next.
What has been done already:
* add a massif user request to take a user snapshot
This user request has currently one argument : a string description of the
user snapshot reason.
* these user snapshots are written in a file which has the same format as
the standard massif output file.
(default name for this file = massif_us.out.%p)
* there is no maximum nr of user snapshots, as these user snapshots are written
"on the fly" in the output file.
* I have added a "what" string component to the Snapshot record.
(the main ideas behind this are:
re-use (as much as possible) same output format so that tools reading the
snapshot output (e.g. ms_print) can both handle the Peak/Normal snapshot
and the User snapshot
* what I will (try to do) next:
* have the what string of a user snapshot shown by ms_print
(I intend to put this string at the end of the line containing the snapshot nr and
other summary data)
* extend the format so as to support a "delta"
i.e. instead of just having the nr of bytes allocated at a certain execution point,
it will also be possible to have the increase/decrease compared to another
snapshot
* based on that, the massif request "take user snapshot" will have one additional
argument "Boolean delta_snapshot", so that delta values are also output.
Delta will be computed between the newly taken user snapshot and the previously
taken user snapshot
* ms_print is then to be upgraded to allow to either print the absolute values
and/or to print the delta values (I have zero experience with perl so volunteers to help
on this will be welcome)
Any feedback about the above is welcome.
|