Show More
@@ -25,8 +25,8 b' def memusage(ui):' | |||||
25 | key = parts[0][2:-1].lower() |
|
25 | key = parts[0][2:-1].lower() | |
26 | if key in result: |
|
26 | if key in result: | |
27 | result[key] = int(parts[1]) |
|
27 | result[key] = int(parts[1]) | |
28 |
ui.write_err(", ".join(["%s: %.1f MiB" % (k |
|
28 | ui.write_err(", ".join(["%s: %.1f MiB" % (k, v / 1024.0) | |
29 |
for k |
|
29 | for k, v in result.iteritems()]) + "\n") | |
30 |
|
30 | |||
31 | def extsetup(ui): |
|
31 | def extsetup(ui): | |
32 | atexit.register(memusage, ui) |
|
32 | atexit.register(memusage, ui) |
General Comments 0
You need to be logged in to leave comments.
Login now