diff options
author | SeongJae Park <sj38.park@gmail.com> | 2024-03-31 10:15:43 -0700 |
---|---|---|
committer | SeongJae Park <sj38.park@gmail.com> | 2024-03-31 10:15:43 -0700 |
commit | 2598d644b0b5c224487a5a1a60c395b11edbd0e7 (patch) | |
tree | 6bf0c64ed7f981b44d8e0e2dda8127c8b34a520c | |
parent | 8066415314eae426de32c501916d9b59781f3910 (diff) | |
download | damo-2598d644b0b5c224487a5a1a60c395b11edbd0e7.tar.gz |
damo_record: Implement to_kvapirs() of MemFootprint
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r-- | damo_record.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/damo_record.py b/damo_record.py index adcc7a84..d43e80ad 100644 --- a/damo_record.py +++ b/damo_record.py @@ -143,6 +143,9 @@ class MemFootprint: self.drs = fields[5] self.dt = fields[6] + def to_kvpairs(self): + return self.__dict__ + class MemFootprintsSnapshot: time = None pid_statms = {} |