projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes the log format to include a timestamp.
[SXSI/xpathcomp.git]
/
utils
/
alarm.ml
diff --git
a/utils/alarm.ml
b/utils/alarm.ml
index
5a9c83f
..
3387b45
100644
(file)
--- a/
utils/alarm.ml
+++ b/
utils/alarm.ml
@@
-71,7
+71,7
@@
let rec monitor pid start finish mem fmt =
else
begin
if not !Options.quiet then
else
begin
if not !Options.quiet then
- fprintf fmt "[%f] Memory: current=%ikb max=%ikb\n%!"
+ fprintf fmt "[%
11.3
f] Memory: current=%ikb max=%ikb\n%!"
(current_time -. start) current_mem !max_mem;
usleep !Options.interval;
monitor pid start finish mem fmt
(current_time -. start) current_mem !max_mem;
usleep !Options.interval;
monitor pid start finish mem fmt