[PATCH] D20751: [esan] Add sideline itimer support
Derek Bruening via llvm-commits
llvm-commits at lists.llvm.org
Fri May 27 14:18:13 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 support for creating a separate thread for performing "sideline"
actions on a periodic basis via an itimer. A new class SidelineThread
implements this feature, exposing a sampling callback to the caller.
Adds initial usage of sideline sampling to the working set tool. For now
it simply prints the usage at each snapshot at verbosity level 1. Adds a
test of this behavior. Adds a new option -record_snapshots to control
whether we sample and a new option -sample_freq to control the periodicity
of the sampling.
http://reviews.llvm.org/D20751
Files:
lib/esan/CMakeLists.txt
lib/esan/esan_flags.inc
lib/esan/esan_sideline.h
lib/esan/esan_sideline_linux.cpp
lib/esan/working_set.cpp
test/esan/TestCases/workingset-samples.cpp
test/esan/Unit/circular_buffer.cpp
test/esan/lit.cfg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20751.58838.patch
Type: text/x-patch
Size: 14469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160527/283a88e9/attachment.bin>
More information about the llvm-commits
mailing list