[PATCH] D20578: [esan|wset] Iterate all memory to compute the total working set
Derek Bruening via llvm-commits
llvm-commits at lists.llvm.org
Tue May 24 10:20:59 PDT 2016
bruening created this revision.
bruening added a reviewer: aizatsky.
bruening added subscribers: llvm-commits, eugenis, kcc, zhaoqin, vitalybuka.
Herald added a subscriber: kubabrecka.
Adds iteration of all application memory in an efficient manner using
shadow faults. Shadow memory starts out inaccessible and we mark it
writable one page at a time on each fault when the instrumentation touches
it. This allows iteration over just the mapped shadow memory, saving
significant time.
Adds a process-end iteration and pretty-printing of the final result.
Adds a new test and updates the existing tests.
http://reviews.llvm.org/D20578
Files:
lib/esan/esan.cpp
lib/esan/working_set.cpp
lib/esan/working_set_posix.cpp
test/esan/TestCases/workingset-fault.cpp
test/esan/TestCases/workingset-memset.cpp
test/esan/TestCases/workingset-simple.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20578.58263.patch
Type: text/x-patch
Size: 7690 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160524/29ad6cdc/attachment.bin>
More information about the llvm-commits
mailing list