36 lines
874 B
C++
36 lines
874 B
C++
/* -----------------------------------------------------------------------------
|
|
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__
|