Added source for gettime code
authorSasha Goldshtein <goldshtn@gmail.com>
Sun, 7 Feb 2016 19:11:56 +0000 (11:11 -0800)
committerSasha Goldshtein <goldshtn@gmail.com>
Sun, 7 Feb 2016 19:11:56 +0000 (11:11 -0800)
tools/memleak.py

index ddacfb5..03fd0c1 100755 (executable)
@@ -121,6 +121,7 @@ def decode_stack(info):
                        stack += " %s (%x) ;" % (decode_addr(code_ranges, addr), addr)
        return stack
 
+# Adapted from http://stackoverflow.com/a/1205762
 CLOCK_MONOTONIC_RAW = 4 # see <linux/time.h>
 
 class timespec(ctypes.Structure):