1 Star 2 Fork 0

Smalldy / CppVisualTracing

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
WTFPL

CppVisualTracing

介绍

cpp可视化性能测试

软件架构

traing tool 提供插入测试点方法 使用

  • TRACING_VISUAL_B
  • TRACING_VISUAL_E 即可插入过程开始标记和过程结束标记,生成的json文件会自动记录同过程的开始和结束时间。

tracing loader 用于加载 tracing tool 生成的json文件,并渲染为网页进行显示。

参照main.cppg给出的例子,运行结束后生成json文件,使用命令

tracing_loader -f path/to/result.json

加载指定的json文件,即可完成可视化。

构建

本项目采用 xmake 进行构建,

cd <projet_dir>
xmake build

等待完成依赖安装并构建完毕。

查看效果

resource拷贝至应用程序生成目录

#windows平台需要自行将/改变为\
tracing_loader -f ./result.json

稍后,程序将会为你自动打开浏览器,并进行如下展示。 img.png 画面上的彩色小条的长度代表实际执行时间。

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO.

简介

cpp可视化性能测试 展开 收起
C++ 等 3 种语言
WTFPL
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/smalldyy/cpp-visual-tracing.git
git@gitee.com:smalldyy/cpp-visual-tracing.git
smalldyy
cpp-visual-tracing
CppVisualTracing
master

搜索帮助