Remove JIT registration API; this needs more time.
This commit is contained in:
parent
fac52a2897
commit
f9defa7b37
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user