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/allocTracer.h at jonoffcpu-dev · jonoffcpu/async-profiler Expand file tree/ Copy pathallocTracer.hMore file actions 52 lines (39 loc) · 1.03 KB / Copy pathallocTracer.hFile metadata and controls52 lines (39 loc) · 1.03 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 /* * Copyright The async-profiler authors * SPDX-License-Identifier: Apache-2.0 */ #ifndef _ALLOCTRACER_H #define _ALLOCTRACER_H #include <signal.h> #include <stdint.h> #include "engine.h" #include "event.h" #include "trap.h" class AllocTracer : public Engine { private: static int _trap_kind; static Trap _in_new_tlab; static Trap _outside_tlab; static u64 _interval; static volatile u64 _allocated_bytes; static Error initialize(); static void recordAllocation(void* ucontext, EventType event_type, uintptr_t rklass, uintptr_t total_size, uintptr_t instance_size); public: const char* type() { return "alloc_tracer"; } const char* title() { return "Allocation profile"; } const char* units() { return "bytes"; } long interval() { return _interval; } Error start(Arguments& args); void stop(); static void trapHandler(int signo, siginfo_t* siginfo, void* ucontext); }; #endif // _ALLOCTRACER_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. |