Thrill  0.1
linux_proc_stats.hpp
Go to the documentation of this file.
1 /*******************************************************************************
2  * thrill/common/linux_proc_stats.hpp
3  *
4  * A thread running a set of tasks scheduled at regular time intervals. Used in
5  * Thrill for creating profiles of CPU usage, memory, etc.
6  *
7  * Part of Project Thrill - http://project-thrill.org
8  *
9  * Copyright (C) 2016 Timo Bingmann <[email protected]>
10  *
11  * All rights reserved. Published under the BSD-2 license in the LICENSE file.
12  ******************************************************************************/
13 
14 #pragma once
15 #ifndef THRILL_COMMON_LINUX_PROC_STATS_HEADER
16 #define THRILL_COMMON_LINUX_PROC_STATS_HEADER
17 
18 namespace thrill {
19 namespace common {
20 
21 // forward declarations
22 class JsonLogger;
23 class ProfileThread;
24 
25 //! launch profiler task
26 void StartLinuxProcStatsProfiler(ProfileThread& sched, JsonLogger& logger);
27 
28 } // namespace common
29 } // namespace thrill
30 
31 #endif // !THRILL_COMMON_LINUX_PROC_STATS_HEADER
32 
33 /******************************************************************************/
void StartLinuxProcStatsProfiler(ProfileThread &, JsonLogger &)
launch profiler task