sun.jvm.hotspot.ui.classbrowser.HTMLGenerator Java Examples
The following examples show how to use
sun.jvm.hotspot.ui.classbrowser.HTMLGenerator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommandProcessor.java From hottub with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { final PrintStream fout = out; final HTMLGenerator gen = new HTMLGenerator(false); CodeCacheVisitor v = new CodeCacheVisitor() { public void prologue(Address start, Address end) { } public void visit(CodeBlob blob) { fout.println(gen.genHTML(blob.contentBegin())); } public void epilogue() { } }; VM.getVM().getCodeCache().iterate(v); } }
Example #2
Source File: CommandProcessor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { int tokens = t.countTokens(); if (tokens != 1) { usage(); return; } String name = t.nextToken(); Address addr = null; try { addr = VM.getVM().getDebugger().parseAddress(name); } catch (NumberFormatException e) { out.println(e); return; } HTMLGenerator generator = new HTMLGenerator(false); out.println(generator.genHTML(addr)); }
Example #3
Source File: CommandProcessor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { SystemDictionary sysDict = VM.getVM().getSystemDictionary(); sysDict.allClassesDo(new SystemDictionary.ClassVisitor() { public void visit(Klass k) { if (k instanceof InstanceKlass && ((InstanceKlass)k).getConstants().getCache() != null) { MethodArray methods = ((InstanceKlass)k).getMethods(); for (int i = 0; i < methods.length(); i++) { Method m = methods.at(i); HTMLGenerator gen = new HTMLGenerator(false); out.println(gen.genHTML(m)); } } } } ); } }
Example #4
Source File: CommandProcessor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { final PrintStream fout = out; final HTMLGenerator gen = new HTMLGenerator(false); CodeCacheVisitor v = new CodeCacheVisitor() { public void prologue(Address start, Address end) { } public void visit(CodeBlob blob) { fout.println(gen.genHTML(blob.contentBegin())); } public void epilogue() { } }; VM.getVM().getCodeCache().iterate(v); } }
Example #5
Source File: CommandProcessor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { ArrayList nmethods = new ArrayList(); Threads threads = VM.getVM().getThreads(); HTMLGenerator gen = new HTMLGenerator(false); for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) { try { for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) { if (vf instanceof CompiledVFrame) { NMethod c = ((CompiledVFrame)vf).getCode(); if (!nmethods.contains(c)) { nmethods.add(c); out.println(gen.genHTML(c)); } } } } catch (Exception e) { e.printStackTrace(); } } } }
Example #6
Source File: CommandProcessor.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { int tokens = t.countTokens(); if (tokens != 1) { usage(); return; } String name = t.nextToken(); Address addr = null; try { addr = VM.getVM().getDebugger().parseAddress(name); } catch (NumberFormatException e) { out.println(e); return; } HTMLGenerator generator = new HTMLGenerator(false); out.println(generator.genHTML(addr)); }
Example #7
Source File: CommandProcessor.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { SystemDictionary sysDict = VM.getVM().getSystemDictionary(); sysDict.allClassesDo(new SystemDictionary.ClassVisitor() { public void visit(Klass k) { if (k instanceof InstanceKlass && ((InstanceKlass)k).getConstants().getCache() != null) { MethodArray methods = ((InstanceKlass)k).getMethods(); for (int i = 0; i < methods.length(); i++) { Method m = methods.at(i); HTMLGenerator gen = new HTMLGenerator(false); out.println(gen.genHTML(m)); } } } } ); } }
Example #8
Source File: CommandProcessor.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { final PrintStream fout = out; final HTMLGenerator gen = new HTMLGenerator(false); CodeCacheVisitor v = new CodeCacheVisitor() { public void prologue(Address start, Address end) { } public void visit(CodeBlob blob) { fout.println(gen.genHTML(blob.contentBegin())); } public void epilogue() { } }; VM.getVM().getCodeCache().iterate(v); } }
Example #9
Source File: CommandProcessor.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { ArrayList nmethods = new ArrayList(); Threads threads = VM.getVM().getThreads(); HTMLGenerator gen = new HTMLGenerator(false); for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) { try { for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) { if (vf instanceof CompiledVFrame) { NMethod c = ((CompiledVFrame)vf).getCode(); if (!nmethods.contains(c)) { nmethods.add(c); out.println(gen.genHTML(c)); } } } } catch (Exception e) { e.printStackTrace(); } } } }
Example #10
Source File: CommandProcessor.java From hottub with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { int tokens = t.countTokens(); if (tokens != 1) { usage(); return; } String name = t.nextToken(); Address addr = null; try { addr = VM.getVM().getDebugger().parseAddress(name); } catch (NumberFormatException e) { out.println(e); return; } HTMLGenerator generator = new HTMLGenerator(false); out.println(generator.genHTML(addr)); }
Example #11
Source File: CommandProcessor.java From hottub with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { SystemDictionary sysDict = VM.getVM().getSystemDictionary(); sysDict.allClassesDo(new SystemDictionary.ClassVisitor() { public void visit(Klass k) { if (k instanceof InstanceKlass && ((InstanceKlass)k).getConstants().getCache() != null) { MethodArray methods = ((InstanceKlass)k).getMethods(); for (int i = 0; i < methods.length(); i++) { Method m = methods.at(i); HTMLGenerator gen = new HTMLGenerator(false); out.println(gen.genHTML(m)); } } } } ); } }
Example #12
Source File: CommandProcessor.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { int tokens = t.countTokens(); if (tokens != 1) { usage(); return; } String name = t.nextToken(); Address addr = null; try { addr = VM.getVM().getDebugger().parseAddress(name); } catch (NumberFormatException e) { out.println(e); return; } HTMLGenerator generator = new HTMLGenerator(false); out.println(generator.genHTML(addr)); }
Example #13
Source File: CommandProcessor.java From hottub with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { ArrayList nmethods = new ArrayList(); Threads threads = VM.getVM().getThreads(); HTMLGenerator gen = new HTMLGenerator(false); for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) { try { for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) { if (vf instanceof CompiledVFrame) { NMethod c = ((CompiledVFrame)vf).getCode(); if (!nmethods.contains(c)) { nmethods.add(c); out.println(gen.genHTML(c)); } } } } catch (Exception e) { e.printStackTrace(); } } } }
Example #14
Source File: CommandProcessor.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { int tokens = t.countTokens(); if (tokens != 1) { usage(); return; } String name = t.nextToken(); Address addr = null; try { addr = VM.getVM().getDebugger().parseAddress(name); } catch (NumberFormatException e) { out.println(e); return; } HTMLGenerator generator = new HTMLGenerator(false); out.println(generator.genHTML(addr)); }
Example #15
Source File: CommandProcessor.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { SystemDictionary sysDict = VM.getVM().getSystemDictionary(); sysDict.allClassesDo(new SystemDictionary.ClassVisitor() { public void visit(Klass k) { if (k instanceof InstanceKlass && ((InstanceKlass)k).getConstants().getCache() != null) { MethodArray methods = ((InstanceKlass)k).getMethods(); for (int i = 0; i < methods.length(); i++) { Method m = methods.at(i); HTMLGenerator gen = new HTMLGenerator(false); out.println(gen.genHTML(m)); } } } } ); } }
Example #16
Source File: CommandProcessor.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { final PrintStream fout = out; final HTMLGenerator gen = new HTMLGenerator(false); CodeCacheVisitor v = new CodeCacheVisitor() { public void prologue(Address start, Address end) { } public void visit(CodeBlob blob) { fout.println(gen.genHTML(blob.contentBegin())); } public void epilogue() { } }; VM.getVM().getCodeCache().iterate(v); } }
Example #17
Source File: CommandProcessor.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { ArrayList nmethods = new ArrayList(); Threads threads = VM.getVM().getThreads(); HTMLGenerator gen = new HTMLGenerator(false); for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) { try { for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) { if (vf instanceof CompiledVFrame) { NMethod c = ((CompiledVFrame)vf).getCode(); if (!nmethods.contains(c)) { nmethods.add(c); out.println(gen.genHTML(c)); } } } } catch (Exception e) { e.printStackTrace(); } } } }
Example #18
Source File: CommandProcessor.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { int tokens = t.countTokens(); if (tokens != 1) { usage(); return; } String name = t.nextToken(); Address addr = null; try { addr = VM.getVM().getDebugger().parseAddress(name); } catch (NumberFormatException e) { out.println(e); return; } HTMLGenerator generator = new HTMLGenerator(false); out.println(generator.genHTML(addr)); }
Example #19
Source File: CommandProcessor.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { SystemDictionary sysDict = VM.getVM().getSystemDictionary(); sysDict.allClassesDo(new SystemDictionary.ClassVisitor() { public void visit(Klass k) { if (k instanceof InstanceKlass && ((InstanceKlass)k).getConstants().getCache() != null) { MethodArray methods = ((InstanceKlass)k).getMethods(); for (int i = 0; i < methods.length(); i++) { Method m = methods.at(i); HTMLGenerator gen = new HTMLGenerator(false); out.println(gen.genHTML(m)); } } } } ); } }
Example #20
Source File: CommandProcessor.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { final PrintStream fout = out; final HTMLGenerator gen = new HTMLGenerator(false); CodeCacheVisitor v = new CodeCacheVisitor() { public void prologue(Address start, Address end) { } public void visit(CodeBlob blob) { fout.println(gen.genHTML(blob.contentBegin())); } public void epilogue() { } }; VM.getVM().getCodeCache().iterate(v); } }
Example #21
Source File: CommandProcessor.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { ArrayList nmethods = new ArrayList(); Threads threads = VM.getVM().getThreads(); HTMLGenerator gen = new HTMLGenerator(false); for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) { try { for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) { if (vf instanceof CompiledVFrame) { NMethod c = ((CompiledVFrame)vf).getCode(); if (!nmethods.contains(c)) { nmethods.add(c); out.println(gen.genHTML(c)); } } } } catch (Exception e) { e.printStackTrace(); } } } }
Example #22
Source File: CommandProcessor.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { int tokens = t.countTokens(); if (tokens != 1) { usage(); return; } String name = t.nextToken(); Address addr = null; try { addr = VM.getVM().getDebugger().parseAddress(name); } catch (NumberFormatException e) { out.println(e); return; } HTMLGenerator generator = new HTMLGenerator(false); out.println(generator.genHTML(addr)); }
Example #23
Source File: CommandProcessor.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { SystemDictionary sysDict = VM.getVM().getSystemDictionary(); sysDict.allClassesDo(new SystemDictionary.ClassVisitor() { public void visit(Klass k) { if (k instanceof InstanceKlass && ((InstanceKlass)k).getConstants().getCache() != null) { MethodArray methods = ((InstanceKlass)k).getMethods(); for (int i = 0; i < methods.length(); i++) { Method m = methods.at(i); HTMLGenerator gen = new HTMLGenerator(false); out.println(gen.genHTML(m)); } } } } ); } }
Example #24
Source File: CommandProcessor.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { ArrayList nmethods = new ArrayList(); Threads threads = VM.getVM().getThreads(); HTMLGenerator gen = new HTMLGenerator(false); for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) { try { for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) { if (vf instanceof CompiledVFrame) { NMethod c = ((CompiledVFrame)vf).getCode(); if (!nmethods.contains(c)) { nmethods.add(c); out.println(gen.genHTML(c)); } } } } catch (Exception e) { e.printStackTrace(); } } } }
Example #25
Source File: CommandProcessor.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { final PrintStream fout = out; final HTMLGenerator gen = new HTMLGenerator(false); CodeCacheVisitor v = new CodeCacheVisitor() { public void prologue(Address start, Address end) { } public void visit(CodeBlob blob) { fout.println(gen.genHTML(blob.contentBegin())); } public void epilogue() { } }; VM.getVM().getCodeCache().iterate(v); } }
Example #26
Source File: CommandProcessor.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { int tokens = t.countTokens(); if (tokens != 1) { usage(); return; } String name = t.nextToken(); Address addr = null; try { addr = VM.getVM().getDebugger().parseAddress(name); } catch (NumberFormatException e) { out.println(e); return; } HTMLGenerator generator = new HTMLGenerator(false); out.println(generator.genHTML(addr)); }
Example #27
Source File: CommandProcessor.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { ArrayList nmethods = new ArrayList(); Threads threads = VM.getVM().getThreads(); HTMLGenerator gen = new HTMLGenerator(false); for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) { try { for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) { if (vf instanceof CompiledVFrame) { NMethod c = ((CompiledVFrame)vf).getCode(); if (!nmethods.contains(c)) { nmethods.add(c); out.println(gen.genHTML(c)); } } } } catch (Exception e) { e.printStackTrace(); } } } }
Example #28
Source File: CommandProcessor.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { ArrayList nmethods = new ArrayList(); Threads threads = VM.getVM().getThreads(); HTMLGenerator gen = new HTMLGenerator(false); for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) { try { for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) { if (vf instanceof CompiledVFrame) { NMethod c = ((CompiledVFrame)vf).getCode(); if (!nmethods.contains(c)) { nmethods.add(c); out.println(gen.genHTML(c)); } } } } catch (Exception e) { e.printStackTrace(); } } } }
Example #29
Source File: CommandProcessor.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { final PrintStream fout = out; final HTMLGenerator gen = new HTMLGenerator(false); CodeCacheVisitor v = new CodeCacheVisitor() { public void prologue(Address start, Address end) { } public void visit(CodeBlob blob) { fout.println(gen.genHTML(blob.contentBegin())); } public void epilogue() { } }; VM.getVM().getCodeCache().iterate(v); } }
Example #30
Source File: CommandProcessor.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { SystemDictionary sysDict = VM.getVM().getSystemDictionary(); sysDict.allClassesDo(new SystemDictionary.ClassVisitor() { public void visit(Klass k) { if (k instanceof InstanceKlass && ((InstanceKlass)k).getConstants().getCache() != null) { MethodArray methods = ((InstanceKlass)k).getMethods(); for (int i = 0; i < methods.length(); i++) { Method m = methods.at(i); HTMLGenerator gen = new HTMLGenerator(false); out.println(gen.genHTML(m)); } } } } ); } }