diff options
author | SeongJae Park <sj38.park@gmail.com> | 2024-02-25 10:14:51 -0800 |
---|---|---|
committer | SeongJae Park <sj38.park@gmail.com> | 2024-02-25 10:25:07 -0800 |
commit | bc05d9a6e28eaadb4e86d5ff5838ddc136fb3009 (patch) | |
tree | 6e2d9e7a44b1402b03173c203b1d7dda3d7f5a5f | |
parent | 549ffc675aed206dcec679fd1d2574a2279cf974 (diff) | |
download | damo-bc05d9a6e28eaadb4e86d5ff5838ddc136fb3009.tar.gz |
damo_replay: Cleanup access code
The code was intended to access more than once per page, but it doesn't
really necessary. Cleanup the code.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r-- | damo_replay.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/damo_replay.py b/damo_replay.py index 8b755da1..314cf03e 100644 --- a/damo_replay.py +++ b/damo_replay.py @@ -20,9 +20,7 @@ def get_page(pfn): def access_region(start_addr, end_addr): for addr in range(start_addr, end_addr, sz_page): page = get_page(addr / sz_page) - not_real_use = 0 - for a in range(0, sz_page, sz_page): - not_real_use += page[a] + just_for_access = page[int(sz_page / 2)] def replay_snapshot(snapshot, mon_intervals): runtime_sec = (snapshot.end_time - snapshot.start_time) / 1000000000 |