aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/FileOutputBuffer.cpp
diff options
context:
space:
mode:
authorDerek Bruening <bruening@google.com>2016-06-03 16:14:07 +0000
committerDerek Bruening <bruening@google.com>2016-06-03 16:14:07 +0000
commit07814769a8f151175c95645f229c4a955ba40def (patch)
tree105e833d58e8c45d978e2993a06374a742d88737 /llvm/lib/Support/FileOutputBuffer.cpp
parent7f5200162b0a04cef89603ef5ebec6421ba769dd (diff)
downloadllvm-07814769a8f151175c95645f229c4a955ba40def.zip
llvm-07814769a8f151175c95645f229c4a955ba40def.tar.gz
llvm-07814769a8f151175c95645f229c4a955ba40def.tar.bz2
[esan] Add sideline itimer support
Summary: 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. Reviewers: aizatsky Subscribers: vitalybuka, zhaoqin, kcc, eugenis, llvm-commits, kubabrecka Differential Revision: http://reviews.llvm.org/D20751 llvm-svn: 271682
Diffstat (limited to 'llvm/lib/Support/FileOutputBuffer.cpp')
0 files changed, 0 insertions, 0 deletions