Compare commits

...

4 Commits

Author SHA1 Message Date
Marcos Slomp
906b9cdb94 compilation time report 2026-06-07 08:44:21 -07:00
Marcos Slomp
a25193ad8d fowrward declarations 2026-06-06 19:49:20 -07:00
Marcos Slomp
f5f4d91cd2 diagnosing where in the linking stage it's getting stuck 2026-06-06 15:07:17 -07:00
Marcos Slomp
ffc5e8665e disabling LTO when building the profiler on macos via the github workflow 2026-06-06 12:47:41 -07:00
3 changed files with 18 additions and 4 deletions

View File

@@ -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 }}

View File

@@ -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>

View File

@@ -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>