Files
rk35xx-android14/external/bcc/examples/cpp/pyperf/PyPerfDefaultPrinter.h
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

32 lines
754 B
C++

/*
* Copyright (c) Facebook, Inc.
* Licensed under the Apache License, Version 2.0 (the "License")
*/
#pragma once
#include "PyPerfSampleProcessor.h"
namespace ebpf {
namespace pyperf {
class PyPerfDefaultPrinter : public PyPerfSampleProcessor {
public:
PyPerfDefaultPrinter(bool showGILState, bool showThreadState,
bool showPthreadIDState)
: showGILState_(showGILState),
showThreadState_(showThreadState),
showPthreadIDState_(showPthreadIDState) {}
void processSamples(const std::vector<PyPerfSample>& samples,
PyPerfUtil* util) override;
private:
bool showGILState_;
bool showThreadState_;
bool showPthreadIDState_;
};
} // namespace pyperf
} // namespace ebpf