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/lookup.h at jonoffcpu-dev · jonoffcpu/async-profiler Expand file tree/ Copy pathlookup.hMore file actions 71 lines (58 loc) · 1.64 KB / Copy pathlookup.hFile metadata and controls71 lines (58 loc) · 1.64 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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 /* * Copyright The async-profiler authors * SPDX-License-Identifier: Apache-2.0 */ #ifndef _LOOKUP_H #define _LOOKUP_H #include <assert.h> #include <unordered_map> #include <jvmti.h> #include "arguments.h" #include "vmEntry.h" class Dictionary; class Index; class MethodInfo { public: bool _mark = false; u32 _key = 0; u32 _class = 0; u32 _name = 0; u32 _sig = 0; jint _modifiers = 0; jint _line_number_table_size = 0; jvmtiLineNumberEntry* _line_number_table = nullptr; FrameTypeId _type; jint getLineNumber(jint bci); }; class MethodMap : public std::unordered_map<jmethodID, MethodInfo> { public: MethodMap() = default; ~MethodMap(); size_t usedMemory(); }; class Lookup { public: MethodMap* _method_map; // Dictionary is thread-safe and can be safely shared, as opposed to Index Dictionary* _classes; Index* _packages; Index* _symbols; Lookup(MethodMap* method_map, Dictionary* classes, Index* packages, Index* symbols, Output output) : _method_map(method_map), _classes(classes), _packages(packages), _symbols(symbols), _output_type(output), _jni(VM::jni()) { assert(_packages != nullptr || output != OUTPUT_JFR); } MethodInfo* resolveMethod(ASGCT_CallFrame& frame); u32 getPackage(const char* class_name); private: JNIEnv* _jni; Output _output_type; void fillNativeMethodInfo(MethodInfo* mi, const char* name, const char* lib_name); bool fillJavaMethodInfo(MethodInfo* mi, jmethodID method, bool first_time); void fillJavaClassInfo(MethodInfo* mi, u32 class_id); }; #endif // _LOOKUP_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. |