Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and multi-threaded timeline view.
This commit is contained in:
parent
c7745408f7
commit
0fcabd2b11
24 changed files with 11142 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <map>
|
||||
|
||||
#include "common/logging/log.h"
|
||||
#include "common/microprofile.h"
|
||||
#include "common/profiler.h"
|
||||
#include "common/string_util.h"
|
||||
#include "common/symbols.h"
|
||||
|
@ -969,8 +970,11 @@ static const FunctionDef* GetSVCInfo(u32 func_num) {
|
|||
return &SVC_Table[func_num];
|
||||
}
|
||||
|
||||
MICROPROFILE_DEFINE(Kernel_SVC, "Kernel", "SVC", MP_RGB(70, 200, 70));
|
||||
|
||||
void CallSVC(u32 immediate) {
|
||||
Common::Profiling::ScopeTimer timer_svc(profiler_svc);
|
||||
MICROPROFILE_SCOPE(Kernel_SVC);
|
||||
|
||||
const FunctionDef* info = GetSVCInfo(immediate);
|
||||
if (info) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue