Browse Source
Integrate the MicroProfile profiling library
Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and multi-threaded timeline view.nce_cpp
24 changed files with 11142 additions and 0 deletions
-
1CMakeLists.txt
-
7externals/microprofile/README.md
-
3571externals/microprofile/microprofile.h
-
3868externals/microprofile/microprofile_html.h
-
3348externals/microprofile/microprofileui.h
-
7src/citra/citra.cpp
-
5src/citra_qt/bootmanager.cpp
-
202src/citra_qt/debugger/profiler.cpp
-
17src/citra_qt/debugger/profiler.h
-
14src/citra_qt/main.cpp
-
2src/citra_qt/main.h
-
3src/common/CMakeLists.txt
-
7src/common/microprofile.cpp
-
25src/common/microprofile.h
-
16src/common/microprofileui.h
-
7src/core/arm/dyncom/arm_dyncom_interpreter.cpp
-
5src/core/hle/service/gsp_gpu.cpp
-
4src/core/hle/svc.cpp
-
8src/core/hw/gpu.cpp
-
4src/video_core/command_processor.cpp
-
3src/video_core/rasterizer.cpp
-
10src/video_core/renderer_opengl/gl_rasterizer.cpp
-
5src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
-
3src/video_core/shader/shader.cpp
@ -0,0 +1,7 @@ |
|||
# microprofile |
|||
|
|||
MicroProfile is a embeddable profiler in a single file, written in C++ |
|||
|
|||
It can display profile information in the application, or by generating captures via a minimal built in webserver. |
|||
|
|||
For more information see the project webpage at https://bitbucket.org/jonasmeyer/microprofile |
|||
3571
externals/microprofile/microprofile.h
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
3868
externals/microprofile/microprofile_html.h
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
3348
externals/microprofile/microprofileui.h
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,7 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
// Includes the MicroProfile implementation in this file for compilation
|
|||
#define MICROPROFILE_IMPL 1
|
|||
#include "common/microprofile.h"
|
|||
@ -0,0 +1,25 @@ |
|||
// Copyright 2015 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
// Customized Citra settings. |
|||
// This file wraps the MicroProfile header so that these are consistent everywhere. |
|||
#define MICROPROFILE_WEBSERVER 0 |
|||
#define MICROPROFILE_GPU_TIMERS 0 // TODO: Implement timer queries when we upgrade to OpenGL 3.3 |
|||
#define MICROPROFILE_CONTEXT_SWITCH_TRACE 0 |
|||
#define MICROPROFILE_PER_THREAD_BUFFER_SIZE (2048<<12) // 8 MB |
|||
|
|||
#include <microprofile.h> |
|||
|
|||
#define MP_RGB(r, g, b) ((r) << 16 | (g) << 8 | (b) << 0) |
|||
|
|||
// On OS X, some Mach header included by MicroProfile defines these as macros, conflicting with |
|||
// identifiers we use. |
|||
#ifdef PAGE_SIZE |
|||
#undef PAGE_SIZE |
|||
#endif |
|||
#ifdef PAGE_MASK |
|||
#undef PAGE_MASK |
|||
#endif |
|||
@ -0,0 +1,16 @@ |
|||
// Copyright 2015 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "common/microprofile.h" |
|||
|
|||
// Customized Citra settings. |
|||
// This file wraps the MicroProfile header so that these are consistent everywhere. |
|||
#define MICROPROFILE_TEXT_WIDTH 6 |
|||
#define MICROPROFILE_TEXT_HEIGHT 12 |
|||
#define MICROPROFILE_HELP_ALT "Right-Click" |
|||
#define MICROPROFILE_HELP_MOD "Ctrl" |
|||
|
|||
#include <microprofileui.h> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue