blob: 89c8153e2c152fae60a16d544404c50b12af86db [file] [log] [blame]
/*
* 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