![]() |
|
|
Definition in file inspectorjagent.h.
#include <boost/thread/thread.hpp>
#include "inspectorj/agent/agentserver.h"
#include <sys/types.h>
#include "inspectorj/agent/agentutils.h"
#include "inspectorj/agent/java_crw_demo.h"
#include "inspectorj/toolset/profiletoolset.h"
Include dependency graph for inspectorjagent.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | inspectorj::agent |
Functions | |
JNIEXPORT jint JNICALL | Agent_OnLoad (JavaVM *vm, char *options, void *reserved) |
Agent_OnLoad: This is called immediately after the shared library is loaded. | |
JNIEXPORT void JNICALL | Agent_OnUnload (JavaVM *vm) |
Agent_OnUnload: This is called immediately before the shared library is unloaded. |
JNIEXPORT jint JNICALL Agent_OnLoad | ( | JavaVM * | vm, | |
char * | options, | |||
void * | reserved | |||
) |
Agent_OnLoad: This is called immediately after the shared library is loaded.
This is the first code executed.
Definition at line 731 of file inspectorjagent.cpp.
References cbClassFileLoadHook(), cbThreadEnd(), cbThreadStart(), cbVMDeath(), cbVMInit(), cbVMStart(), check_jvmti_error(), context, AgentGlobalContext::jvmti, AgentGlobalContext::lock, parseOptions(), and AgentGlobalContext::vm.
JNIEXPORT void JNICALL Agent_OnUnload | ( | JavaVM * | vm | ) |
Agent_OnUnload: This is called immediately before the shared library is unloaded.
This is the last code executed.
Definition at line 832 of file inspectorjagent.cpp.
References AgentGlobalContext::ccount, AgentGlobalContext::classes, AgentGlobalContext::cmdHandler, context, inspectorj::agent::AgentServer::isStarted(), ClassInfo::methods, AgentGlobalContext::profile, AgentGlobalContext::regexFilterList, AgentGlobalContext::server, and inspectorj::agent::AgentServer::stop().