Howdy:
Feature release up on the download sites. Added a number of logfile
expansion % strings:
%u in the logfile path expands to getuid() output.
%h expands to gethostname() output.
%t -> time()
%p -> getpid()
%i -> thread-id output (if configured)
This allows you to specify the logfile as: dmalloc high -l log.%t and
the dmalloc library will dump files log.1055561185 and log.1055621010
depending on the start time of the program.
Also, I've added LOG_PID to drop the PID to each line of the logfile
and LOG_REOPEN to check to see if we have a new pid which might happen
after a fork. If the %p is used above, dmalloc will reopen the
logfile so that the forked process will not overwrite the dmalloc log
output of the parent.
I also rationalized a number of the settings.dist variable names and
fixed a problem in the Makefile for building the test program.
Release notes here:
http://dmalloc.com/releases/notes/dmalloc-5.2.0.html
Tar-gz source file:
http://prdownloads.sourceforge.net/dmalloc/dmalloc-5.2.0.tgz?download
Other release files:
http://sourceforge.net/project/showfiles.php?group_id=4289&release_id=159709
Comments?
---
gray.eg3@...
Version 5.2.0:
* Added PDF documentation files to the installation.
* Fixed a problem with the global Makefile and dmalloc_t. Thanks Bert.
* Added new logfile expansion of %u as getuid() output.
* Added new logfile expansion of %h as gethostname() output.
* Added new logfile expansion of %t as time() output.
* Added new logfile expansion of %p as getpid() output.
* Added new logfile expansion of %i as thread-id output.
* Removed the old logfile % processing. %d no longer expands to pid.
* Added LOG_PID to settings.dist to log pid on each line of logfile.
* Added LOG_REOPEN to reopen log if pid changes (fork). Thanks James.
* Renamed LOG_ITERATION_COUNT to LOG_ITERATION in settings.dist.
* Renamed STORE_SEEN_COUNT to LOG_PNT_SEEN_COUNT in settings.dist.
* Renamed STORE_ITERATION_COUNT to LOG_PNT_ITERATION in settings.dist.
* Renamed STORE_TIME to LOG_PNT_TIME in settings.dist.
* Renamed STORE_TIMEVAL to LOG_PNT_TIMEVAL in settings.dist.
* Renamed LOG_THREAD_ID to LOG_PNT_THREAD_ID in settings.dist.
* Changed log "max memory space wasted" to "max unused memory space".
* Improved the log_stats and log_changed output a bit.