Skip to content

Commit

Permalink
Added profiler module and enhanced thread naming
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Aug 21, 2012
1 parent 120cafc commit d5d5b71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.yourkit.profiler">
<resources>
<resource-root path="yjp.jar"/>
<!-- Insert resources here -->
</resources>
</module>
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ private static void init()
{
ModuleLoader moduleLoader = Module.getBootModuleLoader();
Module forge = moduleLoader.loadModule(ModuleIdentifier.fromString("org.jboss.forge:main"));
Thread controlThread = new Thread(new PluginRunnable(forge, registry));
Thread controlThread = new Thread(new PluginRunnable(forge, registry), forge.getIdentifier().getName() + ":" + forge.getIdentifier().getSlot());
controlThread.start();

Set<Module> plugins = loadPlugins();

for (Module module : plugins)
{
Thread pluginThread = new Thread(new PluginRunnable(module, registry));
Thread pluginThread = new Thread(new PluginRunnable(module, registry), module.getIdentifier().getName() + ":" + module.getIdentifier().getSlot());
pluginThread.start();
}

Expand Down

0 comments on commit d5d5b71

Please sign in to comment.