Commit Graph

99 Commits

Author SHA1 Message Date
Che-Yu Wu
ceb474e072 Wait on HasData condition to avoid infinite loop.
Tracy worker resets the IsConnected to false when finishing the
capture. If it finishes too quick, the waiting loop in capture.cpp
might never see IsConnected = true.
2023-01-25 11:23:04 +00:00
Bartosz Taudul
7eba104e12
Sleep in capture when waiting for connection. 2022-10-19 22:00:40 +02:00
Bartosz Taudul
73fe208b97
Remove unused variable. 2022-09-29 21:02:05 +02:00
Bartosz Taudul
06c7984a16
Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00
MACHIZAUD Andréa
84319911c5 Use $(ProjectDir) for vcpkg msbuild without integration paths. 2022-06-18 17:28:56 +02:00
MACHIZAUD Andréa
5e9b007e90 Uses $(VcpkgManifestRoot) for vcpkg msbuild integration paths. 2022-06-18 17:28:56 +02:00
MACHIZAUD Andréa
6aec95e739 Fix vcxproj support without vcpkg integrate install 2022-06-13 22:30:56 +02:00
Bartosz Taudul
411b3137b5
Merge pull request #365 from theblackunknown/msvc+vcpkg-manifest
Using vcpkg manifest for Windows
2022-06-04 16:44:27 +02:00
MACHIZAUD Andréa
fa8bcdfb30 Inject appropriate path for manifest install 2022-06-04 16:26:22 +02:00
Graydon Hoare
0d4a4f6d9b
Support TRACY_NO_LTO build flag. 2022-05-19 23:40:27 -07:00
MACHIZAUD Andréa
599098912e Remove superfluous vcxproj setup thanks to vcpkg integration 2022-05-09 10:42:11 +02:00
MACHIZAUD Andréa
3adc55d66d Fix weird path ? 2022-05-09 10:42:11 +02:00
MACHIZAUD Andréa
1fabf9dfa5 Update vcxproj vcpkg path 2022-05-09 10:42:11 +02:00
MACHIZAUD Andréa
adcfe4df35 Add Vcpkg manifest + MSBuild integration 2022-05-09 10:42:10 +02:00
Bartosz Taudul
b10c83f358
Use lld linker, if available. 2022-04-27 02:17:16 +02:00
Bartosz Taudul
2dd61aba49
Makefiles can now build clangd database.
Executing the "make db" will run the build process of the selected tool or
library through the bear wrapper (which has to be available in the system),
which will record the compilation parameters of each source file. This
database can be then used by VS Code to set the proper defines and find all
the required includes.

Note that database building is performed in context of the specific tool or
library. Not all tools have the same set of flags.
2022-04-23 23:46:55 +02:00
Benoit Jacob
10ad96c29e 4-space indent 2022-04-12 20:36:08 +00:00
Benoit Jacob
92fdf12e05 make progress info and ANSI colors conditional on being a TTY 2022-04-12 20:31:47 +00:00
Benoit Jacob
ce1f6d0526 explicitly initialize as false - hope the compiler optimizes that 2022-04-12 17:47:14 +00:00
Benoit Jacob
331f39e6a5 rename to s_disconnect and make file-scope static 2022-04-12 17:45:33 +00:00
Benoit Jacob
55ae38a138 Make disconnect atomic because it's written by a signal handler 2022-04-12 17:34:41 +00:00
Benoit Jacob
8c3868e43b Make disconnect volatile as it's written by a signal handler. 2022-04-12 16:06:54 +00:00
Bartosz Taudul
5a2a58f68f
Make capture output better suited for 80-char-wide terminals. 2021-12-30 16:21:25 +01:00
Bartosz Taudul
8c45ed33fd
Bump zstd to 1.5.1. 2021-12-21 12:22:42 +01:00
Bartosz Taudul
aed1360a9c
Update to MSVC 2022. 2021-11-13 00:49:26 +01:00
Bartosz Taudul
13b28714ee
Display failure context in capture utility. 2021-10-10 14:52:30 +02:00
Bartosz Taudul
74d0e79b8c
Vcpkg changed everything again. 2021-09-21 02:09:54 +02:00
Graydon Hoare
26fd867e52
Add -s <seconds> parameter to capture.cpp 2021-08-25 22:52:23 -07:00
Bartosz Taudul
f8ccd8c40d
Move TracyStackFrames to common. 2021-05-23 23:51:56 +02:00
Bartosz Taudul
3d75bf653a
Add interface for frame images dict building. 2021-05-15 15:50:20 +02:00
Bartosz Taudul
859b8e4193
Add zstd dict builder. 2021-05-15 14:56:38 +02:00
Bartosz Taudul
cb0bc67790
Bump zstd to 1.5.0. 2021-05-15 00:48:15 +02:00
Bartosz Taudul
9a5d3b729d
Fix vcpkg. 2021-02-25 18:40:27 +01:00
Bartosz Taudul
9892407ff0 Use system getopt in capture utility on unix.
This fixes header clash between getopt.h and unistd.h (required for unlink),
which prevented LTO on macos.
2021-01-27 00:32:38 +01:00
Bartosz Taudul
57ca6112b8 Enable Link Time Optimization on unix. 2021-01-26 22:43:50 +01:00
Bartosz Taudul
c08d591bf3 Use proper capstone include path. 2021-01-26 20:35:57 +01:00
Bartosz Taudul
b0fe29e12f Remove all lingering references to 32-bit win32 builds. 2021-01-26 20:27:19 +01:00
Bartosz Taudul
046638a2b7 Update all sln files to MSVC 2019. 2021-01-26 20:24:47 +01:00
Bartosz Taudul
c8ea47782c ARM clang doesn't support -march=native. 2021-01-26 19:46:39 +01:00
Bartosz Taudul
62d6f4127d Don't pass -s parameter to clang. 2021-01-26 19:39:24 +01:00
Bartosz Taudul
8adfd45453 Display failure callstack in capture utility. 2020-10-06 14:50:55 +02:00
Bartosz Taudul
4394d396f5 Build release target by default. 2020-10-03 13:45:11 +02:00
Bartosz Taudul
9f00bde629 Use 127.0.0.1 instead of localhost in capture.
This is to keep the default address uniform between tools. There was a
case where localhost wasn't resolving properly and a connection couldn't
be established.
2020-09-24 01:31:24 +02:00
Bartosz Taudul
4a0926aa70 Early check if output is writable in capture utility. 2020-09-20 20:11:19 +02:00
Bartosz Taudul
a1916a7c6c Mark Usage() as a noreturn function. 2020-09-20 20:08:39 +02:00
Bartosz Taudul
7da17680ae Prevent overwriting existing files by the capture utility. 2020-09-20 20:04:43 +02:00
Jim Blandy
7bc8c6283a Factor out Unix build logic into shared files. 2020-07-31 11:08:36 -07:00
Jim Blandy
652582b119 Factor out makefile TBB detection, apply to all tools. 2020-07-31 09:14:12 -07:00
kubouch
1f6d18efcd Fix getopt include for Windows build of capture 2020-07-11 15:10:47 +03:00
kubouch
276e40ab2a Move getopt to root 2020-07-11 12:26:01 +03:00