GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — async-profiler/src/cpuEngine.h at jonoffcpu-dev · jonoffcpu/async-profiler Expand file tree/ Copy pathcpuEngine.hMore file actions 53 lines (38 loc) · 1.07 KB / Copy pathcpuEngine.hFile metadata and controls53 lines (38 loc) · 1.07 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 /* * Copyright The async-profiler authors * SPDX-License-Identifier: Apache-2.0 */ #ifndef _CPUENGINE_H #define _CPUENGINE_H #include <signal.h> #include "engine.h" // Base class for CPU sampling engines: PerfEvents, CTimer, ITimer class CpuEngine : public Engine { protected: static CpuEngine* _current; static long _interval; static CStack _cstack; static int _signal; static bool _count_overrun; static void signalHandler(int signo, siginfo_t* siginfo, void* ucontext); static void signalHandlerJ9(int signo, siginfo_t* siginfo, void* ucontext); void enableThreadEvents(); void disableThreadEvents(); bool isResourceLimit(int err); int createForAllThreads(); virtual int createForThread(int tid) { return -1; } virtual void destroyForThread(int tid) {} public: const char* title() { return "CPU profile"; } const char* units() { return "ns"; } long interval() { return _interval; } static void onThreadStart(); static void onThreadEnd(); }; #endif // _CPUENGINE_H |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |