public class Profiling extends Object implements ProfilingMBean
| Constructor and Description |
|---|
Profiling(INanoTime nanoTime,
String packageName) |
Profiling(INanoTime nanoTime,
String packageName,
Profiling parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Profiling profiling) |
void |
clear() |
int |
getCount() |
String |
getMain() |
long |
getSnapshot() |
long |
getTotal() |
static void |
main(String[] args) |
String |
print() |
String |
printAll() |
void |
register(String name) |
IProfileBuilder |
registerWithPrefix(String prefix) |
IProfileBuilder |
registerWithPrefixAndMain(String prefix,
String main) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAvgpublic String printAll()
printAll in interface ProfilingMBeanpublic IProfileBuilder registerWithPrefix(String prefix)
public IProfileBuilder registerWithPrefixAndMain(String prefix, String main)
public String print()
print in interface ProfilingMBeanpublic void clear()
clear in interface ProfilingMBeanpublic void register(String name)
public static void main(String[] args) throws MalformedObjectNameException, NotCompliantMBeanException, InstanceAlreadyExistsException, MBeanRegistrationException, InterruptedException
public int getCount()
getCount in interface IProfileInfopublic long getTotal()
getTotal in interface IProfileInfopublic long getSnapshot()
getSnapshot in interface IProfileInfopublic String getMain()
getMain in interface ProfilingMBeanpublic void addChild(Profiling profiling)
Copyright © 2023. All rights reserved.