#if defined(ENABLE_OPAGENT)
if (opt_EnableOpagent)
- OprofileAgent_initialize();
+ OprofileAgent::initialize();
#endif
}
{
#if defined(ENABLE_OPAGENT)
if (opt_EnableOpagent)
- OprofileAgent_close();
+ OprofileAgent::close();
#endif
}
#if defined(ENABLE_OPAGENT)
if (opt_EnableOpagent)
- OprofileAgent_newmethod(m);
+ OprofileAgent::newmethod(m);
#endif
/* leave the monitor */
#if defined(ENABLE_OPAGENT)
if (opt_EnableOpagent)
- OprofileAgent_newmethod(m);
+ OprofileAgent::newmethod(m);
#endif
DEBUG_JIT_COMPILEVERBOSE("Recompiling done: ");
*/
-
#include "config.h"
#include "mm/memory.h"
_handle = 0;
}
-/* Legacy C interface *********************************************************/
-
-extern "C" {
-
-void OprofileAgent_initialize() { OprofileAgent::initialize(); }
-void OprofileAgent_newmethod(methodinfo *m) { OprofileAgent::newmethod(m); }
-void OprofileAgent_close() { OprofileAgent::close(); }
-
-}
/*
* These are local overrides for various environment variables in Emacs.
#include "config.h"
-#ifdef __cplusplus
extern "C" {
-#endif
#include "vm/method.h"
-
#include <opagent.h>
-#ifdef __cplusplus
}
-#endif
-
-#ifdef __cplusplus
class OprofileAgent
{
static void close();
};
-#else
-
-/* Legacy C interface *********************************************************/
-
-typedef struct OprofileAgent OprofileAgent;
-
-void OprofileAgent_initialize(void);
-void OprofileAgent_newmethod(methodinfo *);
-void OprofileAgent_close();
-
-#endif
-
#endif /* _OPROFILE_AGENT_HPP */