< prev index next >

src/hotspot/share/jfr/recorder/stacktrace/jfrStackTraceRepository.hpp

Print this page

50   u4 _entries;
51 
52   JfrStackTraceRepository();
53   static JfrStackTraceRepository& instance();
54   static JfrStackTraceRepository* create();
55   static void destroy();
56   bool initialize();
57 
58   bool is_modified() const;
59   static size_t clear();
60   static size_t clear(JfrStackTraceRepository& repo);
61   size_t write(JfrChunkWriter& cw, bool clear);
62 
63   static const JfrStackTrace* lookup_for_leak_profiler(unsigned int hash, traceid id);
64   static void record_for_leak_profiler(JavaThread* thread, int skip = 0);
65   static void clear_leak_profiler();
66 
67   traceid add_trace(const JfrStackTrace& stacktrace);
68   static traceid add(JfrStackTraceRepository& repo, const JfrStackTrace& stacktrace);
69   static traceid add(const JfrStackTrace& stacktrace);
70   traceid record_for(JavaThread* thread, int skip, JfrStackFrame* frames, u4 max_frames);
71 
72  public:
73   static traceid record(Thread* thread, int skip = 0);
74 };
75 
76 #endif // SHARE_JFR_RECORDER_STACKTRACE_JFRSTACKTRACEREPOSITORY_HPP

50   u4 _entries;
51 
52   JfrStackTraceRepository();
53   static JfrStackTraceRepository& instance();
54   static JfrStackTraceRepository* create();
55   static void destroy();
56   bool initialize();
57 
58   bool is_modified() const;
59   static size_t clear();
60   static size_t clear(JfrStackTraceRepository& repo);
61   size_t write(JfrChunkWriter& cw, bool clear);
62 
63   static const JfrStackTrace* lookup_for_leak_profiler(unsigned int hash, traceid id);
64   static void record_for_leak_profiler(JavaThread* thread, int skip = 0);
65   static void clear_leak_profiler();
66 
67   traceid add_trace(const JfrStackTrace& stacktrace);
68   static traceid add(JfrStackTraceRepository& repo, const JfrStackTrace& stacktrace);
69   static traceid add(const JfrStackTrace& stacktrace);
70   traceid record(JavaThread* current_thread, int skip, JfrStackFrame* frames, u4 max_frames);
71 
72  public:
73   static traceid record(Thread* current_thread, int skip = 0);
74 };
75 
76 #endif // SHARE_JFR_RECORDER_STACKTRACE_JFRSTACKTRACEREPOSITORY_HPP
< prev index next >