mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 08:33:48 +00:00
Compare commits
4 Commits
e5aa8eba51
...
slomp/gith
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
906b9cdb94 | ||
|
|
a25193ad8d | ||
|
|
f5f4d91cd2 | ||
|
|
ffc5e8665e |
18
.github/workflows/macos.yml
vendored
18
.github/workflows/macos.yml
vendored
@@ -27,8 +27,22 @@ jobs:
|
||||
run: git config --global --add safe.directory '*'
|
||||
- name: Build profiler
|
||||
run: |
|
||||
cmake -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=Release -DGIT_REV=${{ github.sha }}
|
||||
cmake --build profiler/build --parallel --config Release
|
||||
# NOTE: disabling LTO to speed-up the GitHub macOS build bots (would take 30+ min otherwise)
|
||||
cmake -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=Release -DGIT_REV=${{ github.sha }} -DNO_LTO=ON -DCMAKE_CXX_FLAGS="-ftime-trace"
|
||||
cmake --build profiler/build --parallel --config Release -- VERBOSE=1
|
||||
- name: Profiler compile-time report
|
||||
run: |
|
||||
python3 -c "
|
||||
import json, glob, os
|
||||
times = []
|
||||
for f in glob.glob('profiler/build/**/*.json', recursive=True):
|
||||
try:
|
||||
d = json.load(open(f))
|
||||
total = next((e['dur'] for e in d['traceEvents'] if e.get('name')=='Total'), None)
|
||||
if total: times.append((total/1e6, f))
|
||||
except: pass
|
||||
for t,f in sorted(times, reverse=True)[:20]: print(f'{t:6.1f}s {os.path.basename(f)}')
|
||||
"
|
||||
- name: Build update
|
||||
run: |
|
||||
cmake -B update/build -S update -DCMAKE_BUILD_TYPE=Release -DGIT_REV=${{ github.sha }}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __TRACYDISASSEMBLY_HPP__
|
||||
#define __TRACYDISASSEMBLY_HPP__
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <nlohmann/json_fwd.hpp>
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <nlohmann/json_fwd.hpp>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
Reference in New Issue
Block a user