Updated includes and spcomp to SourceMod 1.9
This commit is contained in:
Vendored
+7
-10
@@ -45,25 +45,23 @@
|
||||
*
|
||||
* @return Handle to the profiler object.
|
||||
*/
|
||||
native Handle:CreateProfiler();
|
||||
native Handle CreateProfiler();
|
||||
|
||||
/**
|
||||
* Starts profiling.
|
||||
*
|
||||
* @param prof Profiling object.
|
||||
* @noreturn
|
||||
* @error Invalid Handle.
|
||||
*/
|
||||
native StartProfiling(Handle:prof);
|
||||
native void StartProfiling(Handle prof);
|
||||
|
||||
/**
|
||||
* Stops profiling.
|
||||
*
|
||||
* @param prof Profiling object.
|
||||
* @noreturn
|
||||
* @error Invalid Handle or profiling was never started.
|
||||
*/
|
||||
native StopProfiling(Handle:prof);
|
||||
native void StopProfiling(Handle prof);
|
||||
|
||||
/**
|
||||
* Returns the amount of high-precision time in seconds
|
||||
@@ -74,7 +72,7 @@ native StopProfiling(Handle:prof);
|
||||
* @return Time elapsed in seconds.
|
||||
* @error Invalid Handle.
|
||||
*/
|
||||
native Float:GetProfilerTime(Handle:prof);
|
||||
native float GetProfilerTime(Handle prof);
|
||||
|
||||
/**
|
||||
* Mark the start of a profiling event.
|
||||
@@ -82,19 +80,18 @@ native Float:GetProfilerTime(Handle:prof);
|
||||
* @param group Budget group. This can be "all" for a default, or a short
|
||||
* description like "Timers" or "Events".
|
||||
* @param name A name to attribute to this profiling event.
|
||||
* @noreturn
|
||||
*/
|
||||
native EnterProfilingEvent(const String:group[], const String:name[]);
|
||||
native void EnterProfilingEvent(const char[] group, const char[] name);
|
||||
|
||||
/**
|
||||
* Mark the end of the last profiling event. This must be called in the same
|
||||
* stack frame as StartProfilingEvent(). Not doing so, or throwing errors,
|
||||
* will make the resulting profile very wrong.
|
||||
*/
|
||||
native LeaveProfilingEvent();
|
||||
native void LeaveProfilingEvent();
|
||||
|
||||
/**
|
||||
* Returns true if the global profiler is enabled; false otherwise. It is
|
||||
* not necessary to call this before Enter/LeaveProfilingEvent.
|
||||
*/
|
||||
native bool:IsProfilingActive();
|
||||
native bool IsProfilingActive();
|
||||
|
||||
Reference in New Issue
Block a user