comparison src/share/vm/compiler/compileLog.hpp @ 6843:c3e799c37717

7177003: C1: LogCompilation support Summary: add LogCompilation support in C1 - both client and tiered mode. Reviewed-by: twisti, kvn
author vlivanov
date Fri, 05 Oct 2012 18:57:10 -0700
parents da91efe96a93
children 813f26e34135
comparison
equal deleted inserted replaced
6830:81e878c53615 6843:c3e799c37717
60 CompileLog(const char* file, FILE* fp, intx thread_id); 60 CompileLog(const char* file, FILE* fp, intx thread_id);
61 ~CompileLog(); 61 ~CompileLog();
62 62
63 intx thread_id() { return _thread_id; } 63 intx thread_id() { return _thread_id; }
64 const char* file() { return _file; } 64 const char* file() { return _file; }
65
66 // Optional context marker, to help place actions that occur during
67 // parsing. If there is no log output until the next context string
68 // or reset, context string will be silently ignored
65 stringStream* context() { return &_context; } 69 stringStream* context() { return &_context; }
70 void clear_context() { context()->reset(); }
71 void set_context(const char* format, ...);
66 72
67 void name(ciSymbol* s); // name='s' 73 void name(ciSymbol* s); // name='s'
68 void name(Symbol* s) { xmlStream::name(s); } 74 void name(Symbol* s) { xmlStream::name(s); }
69 75
70 // Output an object description, return obj->ident(). 76 // Output an object description, return obj->ident().
71 int identify(ciBaseObject* obj); 77 int identify(ciBaseObject* obj);
72 void clear_identities(); 78 void clear_identities();
73 79
80 void inline_fail (const char* reason);
81 void inline_success(const char* reason);
82
74 // virtuals 83 // virtuals
75 virtual void see_tag(const char* tag, bool push); 84 virtual void see_tag(const char* tag, bool push);
76 virtual void pop_tag(const char* tag); 85 virtual void pop_tag(const char* tag);
77 86
78 // make a provisional end of log mark 87 // make a provisional end of log mark
79 void mark_file_end() { _file_end = out()->count(); } 88 void mark_file_end() { _file_end = out()->count(); }
80 89
90 // Print code cache statistics
91 void code_cache_state();
92
81 // copy all logs to the given stream 93 // copy all logs to the given stream
82 static void finish_log(outputStream* out); 94 static void finish_log(outputStream* out);
83 static void finish_log_on_error(outputStream* out, char *buf, int buflen); 95 static void finish_log_on_error(outputStream* out, char *buf, int buflen);
84 }; 96 };
85 97