diff --git a/core/vprof_tool.cpp b/core/vprof_tool.cpp index 2d935309..75648e07 100644 --- a/core/vprof_tool.cpp +++ b/core/vprof_tool.cpp @@ -84,22 +84,6 @@ VProfTool::IsAttached() return true; } -intptr_t -VProfTool::RegisterCode( - uintptr_t addr, - size_t length, - const char *name, - const uintptr_t *line_map, - size_t line_count) -{ - return 0; -} - -void -VProfTool::DeregisterCode(intptr_t cookie) -{ -} - void VProfTool::EnterScope(const char *group, const char *name) { diff --git a/core/vprof_tool.h b/core/vprof_tool.h index e1d0c997..3289b490 100644 --- a/core/vprof_tool.h +++ b/core/vprof_tool.h @@ -46,13 +46,6 @@ public: void Stop(void (*render)(const char *fmt, ...)) KE_OVERRIDE; bool IsActive() KE_OVERRIDE; bool IsAttached() KE_OVERRIDE; - intptr_t RegisterCode( - uintptr_t addr, - size_t length, - const char *name, - const uintptr_t *line_map, - size_t line_count) KE_OVERRIDE; - void DeregisterCode(intptr_t cookie) KE_OVERRIDE; void EnterScope(const char *group, const char *name) KE_OVERRIDE; void LeaveScope() KE_OVERRIDE; void RenderHelp(void (*render)(const char *fmt, ...)) KE_OVERRIDE; diff --git a/public/sourcepawn/sp_vm_api.h b/public/sourcepawn/sp_vm_api.h index fdb7338f..ca4d50f9 100644 --- a/public/sourcepawn/sp_vm_api.h +++ b/public/sourcepawn/sp_vm_api.h @@ -1003,7 +1003,7 @@ namespace SourcePawn class IProfiler; /** - * @brief encapsulates a profiling tool that may be attached to SourcePawn. + * @brief Encapsulates a profiling tool that may be attached to SourcePawn. */ class IProfilingTool { @@ -1059,32 +1059,6 @@ namespace SourcePawn */ virtual bool IsAttached() = 0; - /** - * @brief Registers JIT code with the profiler. - * - * @param addr Address where the JIT code starts. - * @param length Length of the JIT code region. - * @param name Name to associate with the JIT code. - * @param line_map An array of pairs where the ith element is - * an offset from code_addr and the i+1th - * element is a line number. - * @param line_count Number of lines (line_map size should be lines*2). - * @return A cookie for deregistering, or 0 on failure. - */ - virtual intptr_t RegisterCode( - uintptr_t addr, - size_t length, - const char *name, - const uintptr_t *line_map, - size_t line_count) = 0; - - /** - * @brief Deregisters JIT code using a previous cookie. - * - * @param cookie A cookie returned by RegisterCode(). - */ - virtual void DeregisterCode(intptr_t cookie) = 0; - /** * @brief Enters the scope of an event. *