first commit
This commit is contained in:
35
include/modules/script_squirrel/engine_vm_profiler.h
Normal file
35
include/modules/script_squirrel/engine_vm_profiler.h
Normal file
@ -0,0 +1,35 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef __MONITOR_SCRIPT_PROFILER__
|
||||
#define __MONITOR_SCRIPT_PROFILER__
|
||||
|
||||
|
||||
#include "script/script_profiler.h"
|
||||
#include "script/script_vm.h"
|
||||
#include "squirrel.h"
|
||||
|
||||
|
||||
namespace GS {
|
||||
namespace Script {
|
||||
|
||||
/*
|
||||
@short Engine VM profiler interface.
|
||||
@author Emmanuel Julien (ejulien@nworks.fr)
|
||||
*/
|
||||
struct EngineProfiler : public Profiler
|
||||
{
|
||||
/// Get function profile.
|
||||
FunctionProfile *GetFunctionProfile(const char *source, const char *function, int line, FunctionProfile *profile) { return 0; }
|
||||
/// Update profiler.
|
||||
void Update(int type, FunctionProfile *profile) {}
|
||||
};
|
||||
|
||||
} // Script
|
||||
} // GS
|
||||
|
||||
|
||||
#endif // __MONITOR_SCRIPT_PROFILER__
|
||||
Reference in New Issue
Block a user