From a329a6a86a2c9a8447c9888d6eec5b1ed72928d2 Mon Sep 17 00:00:00 2001 From: Andrey Skobtsov Date: Wed, 20 May 2020 21:54:07 +0300 Subject: [PATCH] Fixed compilation on non linux devices --- src/Common/ThreadProfileEvents.cpp | 3 ++- src/Common/ThreadProfileEvents.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Common/ThreadProfileEvents.cpp b/src/Common/ThreadProfileEvents.cpp index e466b302d30..9ca5dfef7c3 100644 --- a/src/Common/ThreadProfileEvents.cpp +++ b/src/Common/ThreadProfileEvents.cpp @@ -562,8 +562,9 @@ Logger * PerfDescriptorsHolder::getLogger() namespace DB { - void PerfEventsCounters::initializeProfileEvents(PerfEventsCounters &) {} + void PerfEventsCounters::initializeProfileEvents(PerfEventsCounters &, const std::string &) {} void PerfEventsCounters::finalizeProfileEvents(PerfEventsCounters &, ProfileEvents::Counters &) {} + void PerfEventsCounters::closeEventDescriptors() {} } #endif diff --git a/src/Common/ThreadProfileEvents.h b/src/Common/ThreadProfileEvents.h index 32cd253a7d1..29e7fa29d79 100644 --- a/src/Common/ThreadProfileEvents.h +++ b/src/Common/ThreadProfileEvents.h @@ -237,8 +237,9 @@ private: struct PerfEventsCounters { - static void initializeProfileEvents(PerfEventsCounters & counters); + static void initializeProfileEvents(PerfEventsCounters & counters, const std::string & events_list); static void finalizeProfileEvents(PerfEventsCounters & counters, ProfileEvents::Counters & profile_events); + static void closeEventDescriptors(); }; #endif