mirror of https://github.com/sipwise/jitsi.git
parent
0ec995e1f5
commit
3aecc0800f
Binary file not shown.
Binary file not shown.
@ -0,0 +1,25 @@
|
||||
#
|
||||
# This file lists those classes that should be ignored by
|
||||
# the agent during instrumentation. In most cases these
|
||||
# classes trigger JVM internal errors and should be simply
|
||||
# ignored. Notice that some classes are ignored even if
|
||||
# not listed here (they may cause your JVM to crash
|
||||
# seriously so I hard-coded exclusions for those within
|
||||
# the agent)
|
||||
#
|
||||
# The agent will ignore all classes STARTING WITH the string
|
||||
# indicated. So, you can exclude a whole package by ending
|
||||
# with '.'
|
||||
#
|
||||
|
||||
org.apache.tomcat.jni.OS
|
||||
org.jboss.util.xml.DOMWriter
|
||||
org.jboss.mq.il.uil2.ServerSocketManagerHandler
|
||||
org.hsqldb.jdbc.jdbcConnection
|
||||
org.hsqldb.Index
|
||||
bsh.ParserTokenManager
|
||||
org.eclipse.jdt.internal.compiler.lookup.TypeBinding
|
||||
org.eclipse.jdt.internal.compiler.ast.Expression
|
||||
org.eclipse.jdt.internal.compiler.problem.ProblemReporter
|
||||
org.eclipse.jdt.internal.compiler.impl.Constant
|
||||
com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore
|
||||
Binary file not shown.
@ -0,0 +1,53 @@
|
||||
/*
|
||||
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
|
||||
*
|
||||
* Distributable under LGPL license.
|
||||
* See terms of license at gnu.org.
|
||||
*/
|
||||
package net.java.sip.communicator.plugin.profiler4j;
|
||||
|
||||
import java.util.*;
|
||||
import net.java.sip.communicator.service.gui.*;
|
||||
import net.java.sip.communicator.util.*;
|
||||
import org.osgi.framework.*;
|
||||
|
||||
/**
|
||||
* Activates the profiler plug-in.
|
||||
*
|
||||
* @author Vladimir Škarupelov
|
||||
*/
|
||||
public class ProfilerActivator implements BundleActivator {
|
||||
|
||||
public static BundleContext bundleContext;
|
||||
|
||||
Logger logger = Logger.getLogger(ProfilerActivator.class);
|
||||
|
||||
private ServiceRegistration menuRegistration = null;
|
||||
|
||||
public void start(BundleContext bc) throws Exception {
|
||||
bundleContext = bc;
|
||||
|
||||
SettingsWindowMenuEntry menuEntry = new SettingsWindowMenuEntry(
|
||||
Container.CONTAINER_TOOLS_MENU);
|
||||
|
||||
Hashtable<String, String> toolsMenuFilter =
|
||||
new Hashtable<String, String>();
|
||||
toolsMenuFilter.put(Container.CONTAINER_ID,
|
||||
Container.CONTAINER_TOOLS_MENU.getID());
|
||||
|
||||
menuRegistration = bc.registerService(PluginComponent.class
|
||||
.getName(), menuEntry, toolsMenuFilter);
|
||||
|
||||
logger.info("PROFILER4J [REGISTERED]");
|
||||
|
||||
}
|
||||
|
||||
public void stop(BundleContext bc) throws Exception {
|
||||
if (menuRegistration != null)
|
||||
{
|
||||
menuRegistration.unregister();
|
||||
logger.info("PROFILER4J [UNREGISTERED]");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
/*
|
||||
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
|
||||
*
|
||||
* Distributable under LGPL license.
|
||||
* See terms of license at gnu.org.
|
||||
*/
|
||||
package net.java.sip.communicator.plugin.profiler4j;
|
||||
|
||||
import java.util.*;
|
||||
import org.osgi.framework.*;
|
||||
import net.java.sip.communicator.service.resources.*;
|
||||
|
||||
/**
|
||||
* The Messages class manages the access to the internationalization properties
|
||||
* files.
|
||||
*
|
||||
* @author Vladimir Škarupelov;
|
||||
*/
|
||||
public class Resources
|
||||
{
|
||||
private static ResourceManagementService resourcesService = null;
|
||||
|
||||
/**
|
||||
* Returns an internationalized string corresponding to the given key.
|
||||
*
|
||||
* @param key The key of the string.
|
||||
* @return An internationalized string corresponding to the given key.
|
||||
*/
|
||||
public static String getString(String key)
|
||||
{
|
||||
return getResources().getI18NString(key);
|
||||
}
|
||||
|
||||
public static ResourceManagementService getResources()
|
||||
{
|
||||
if (resourcesService == null)
|
||||
{
|
||||
ServiceReference serviceReference = ProfilerActivator.bundleContext
|
||||
.getServiceReference(ResourceManagementService.class.getName());
|
||||
|
||||
if (serviceReference == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
resourcesService =
|
||||
(ResourceManagementService) ProfilerActivator.bundleContext
|
||||
.getService(serviceReference);
|
||||
}
|
||||
|
||||
return resourcesService;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
Bundle-Activator: net.java.sip.communicator.plugin.profiler4j.ProfilerActivator
|
||||
Bundle-Name: Integrated profiler plugin
|
||||
Bundle-Description: A bundle that provides profile cpu and memory of the running app.
|
||||
Bundle-Vendor: sip-communicator.org
|
||||
Bundle-Version: 0.0.1
|
||||
Import-Package: org.osgi.framework,
|
||||
net.java.sip.communicator.util,
|
||||
net.java.sip.communicator.service.contactlist,
|
||||
net.java.sip.communicator.service.gui,
|
||||
net.java.sip.communicator.service.resources,
|
||||
javax.swing,
|
||||
javax.swing.filechooser,
|
||||
javax.swing.tree,
|
||||
javax.swing.event,
|
||||
javax.swing.border,
|
||||
javax.swing.table,
|
||||
javax.swing.text,
|
||||
javax.xml.parsers,
|
||||
org.xml.sax,
|
||||
org.xml.sax.ext,
|
||||
org.xml.sax.helpers
|
||||
Loading…
Reference in new issue