rprof

所属分类:数据可视化
开发工具:C++
文件大小:2969KB
下载次数:0
上传日期:2023-05-01 07:50:13
上 传 者sh-1993
说明:  基于CPU范围的分析库和基于浏览器的配置文件检查器,具有ImGui可视化
(CPU scope based profiling library and browser based profile inspector with ImGui visualization)

文件列表:
.appveyor.yml (4030, 2023-09-23)
.editorconfig (228, 2023-09-23)
3rd (0, 2023-09-23)
3rd\lz4-r191 (0, 2023-09-23)
3rd\lz4-r191\lz4.c (96277, 2023-09-23)
3rd\lz4-r191\lz4.h (35090, 2023-09-23)
LICENSE (1318, 2023-09-23)
genie (0, 2023-09-23)
genie\genie.lua (497, 2023-09-23)
genie\rprof.lua (178, 2023-09-23)
img (0, 2023-09-23)
img\rprof_browser.gif (2339236, 2023-09-23)
img\rprof_vis.jpg (158872, 2023-09-23)
inc (0, 2023-09-23)
inc\rprof.h (6629, 2023-09-23)
inc\rprof_imgui.h (18649, 2023-09-23)
makefile (2904, 2023-09-23)
samples (0, 2023-09-23)
samples\01_demo (0, 2023-09-23)
samples\01_demo\demo.cpp (4125, 2023-09-23)
samples\01_demo\demo_pch.cpp (340, 2023-09-23)
samples\01_demo\demo_pch.h (493, 2023-09-23)
scripts (0, 2023-09-23)
scripts\win_fetch_dependencies.bat (1149, 2023-09-23)
scripts\win_generate_inspector_project.bat (238, 2023-09-23)
scripts\win_generate_project.bat (83, 2023-09-23)
src (0, 2023-09-23)
src\rprof_config.h (588, 2023-09-23)
src\rprof_context.cpp (6415, 2023-09-23)
src\rprof_context.h (1670, 2023-09-23)
src\rprof_freelist.cpp (1876, 2023-09-23)
src\rprof_freelist.h (789, 2023-09-23)
src\rprof_lib.cpp (13205, 2023-09-23)
src\rprof_mutex.h (3719, 2023-09-23)
src\rprof_platform.h (5035, 2023-09-23)
src\rprof_tls.h (1613, 2023-09-23)
... ...

[![Build status](https://ci.appveyor.com/api/projects/status/04***ey79muxvrh9t?svg=true)](https://ci.appveyor.com/project/milostosic/rprof-fbbqv) [![License](https://img.shields.io/badge/license-BSD--2%20clause-blue.svg)](https://github.com/RudjiGames/rprof/blob/master/LICENSE) About ====== **rprof** is a scope based CPU profiling library with [ImGui](https://github.com/ocornut/imgui) visulization and browser profile inspector. The core concept is a time threshold, which can be used to easily catch functions or entire frames that exceed certain time value. By doing this, optimization work can focus initially on frames and functions that are only occasionally slow and iteratively progress towards more consistent performance. Profiler always runs when used, but will display only those frames that exceed given threshold. Default value of 0 means to display every frame. Level value refers to hierachical scope depth where value of 0 represents an entire frame. ![In game screenshot](https://github.com/RudjiGames/rprof/blob/master/img/rprof_vis.jpg) Source Code ====== You can get the latest source code by cloning it from github: git clone https://github.com/RudjiGames/rprof.git Build ====== [GENie](https://github.com/bkaradzic/GENie) script can generate Microsoft Visual Studio solution or makefiles for a GCC based compiler or cross compiler. Generating a MSVC solution, for example, is done using the following command: genie vs2022 The generated solution will be located in the following folder: .build/projects/vs2022 Generating makefiles for a GCC based toolchain is done in a similar way, for example: OSX : genie --gcc=oxc gmake PS4 : genie --gcc=ps4 gmake Generated makefiles will be located in the following folder: .build/projects/gmake/$(GCC_TOOLCHAIN) All of the generated solutions/makefiles provide a Debug, Release and Retail configurations, in both 32bit and ***bit versions. Some platforms support only one word size, for example OSX works with *** bit builds only. To build a GCC based library use the following command lines: Debug, 32bit : make -R config=debug32 Release, ***bit : make -R config=release*** For convenience, there are batch files in 'scripts' directory that can be used to fetch dependencies (for the demo) and generate project files. Browser inspector ====== Captured frame profiles can be saved to binary files for offline inspection. The browser based inspector is built using Emscripten. Makefile is included for convenience. Browser inspector is based on [ImGui](https://github.com/ocornut/imgui) and is interacive provinding zooming and panning as well as statistical overview of the frame. Viewer is browser based in order to be able to use it as a part of QA pipeline during development process. [**Live demo**](https://rudji.com/rprof/rprof.html?path=https://rudji.com/rprof/&file=capture.rprofm) ![Inspector screenshot](https://github.com/milostosic/rprof/blob/master/img/rprof_browser.gif) License (BSD 2-clause) ====== Copyright 2023 Milos Tosic. All rights reserved. https://github.com/RudjiGames/rprof Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

近期下载者

相关文件


收藏者