GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — async-profiler/src/objectSampler.h at jonoffcpu-dev · jonoffcpu/async-profiler

Expand file tree

/

objectSampler.h

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
53 lines (39 loc) · 1.16 KB
/

objectSampler.h

Copy path

File metadata and controls

53 lines (39 loc) · 1.16 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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 _OBJECTSAMPLER_H
#define _OBJECTSAMPLER_H
#include <jvmti.h>
#include "arch.h"
#include "engine.h"
#include "event.h"
class ObjectSampler : public Engine {
protected:
static u64 _interval;
static bool _live;
static volatile u64 _allocated_bytes;
static void initLiveRefs(bool live);
static void dumpLiveRefs();
static void recordAllocation(jvmtiEnv* jvmti, JNIEnv* jni, EventType event_type,
jobject object, jclass object_klass, jlong size);
public:
const char* type() {
return "object_sampler";
}
const char* title() {
return "Allocation profile";
}
const char* units() {
return "bytes";
}
long interval() {
return _interval;
}
Error start(Arguments& args);
void stop();
static void JNICALL SampledObjectAlloc(jvmtiEnv* jvmti, JNIEnv* jni, jthread thread,
jobject object, jclass object_klass, jlong size);
static void JNICALL GarbageCollectionStart(jvmtiEnv* jvmti);
};
#endif // _OBJECTSAMPLER_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.