Commit Graph

44 Commits

Author SHA1 Message Date
Clément Grégoire
c1177a0cde Add fiber to test app
This simulates fibers on different threads. Was used to discover an issue reported on discord which led to #1364
2026-05-20 12:07:05 +02:00
Clément Grégoire
be78dc4bfb Tests should work under TRACY_MANUAL_LIFETIME.
This calls tracy::StartupProfiler(); before any other tracy call (in static init) if TRACY_MANUAL_LIFETIME is set
2026-02-01 14:45:00 +01:00
Bartosz Taudul
5e078ed0dd Fix Lua integration with test. 2026-01-24 01:10:56 +01:00
Clément Grégoire
9b135b53b4 Add lua to test/test.cpp 2026-01-13 11:25:44 +01:00
Clément Grégoire
1a4cdef4b6 Add TracyLog to the test example 2025-12-28 15:01:00 +01:00
Clément Grégoire
16558f2915 Fix unknown allocation message in debug due to alloc name litteral not pointing to the same location 2025-12-16 19:49:08 +01:00
Clément Grégoire
9c66d27777 Test: Fix unknown allocation message in debug due to arena name litteral not pointing to the same location 2025-12-12 16:40:14 +01:00
Clément Grégoire
84f3bd10e8 Make test app compile on windows SIGUSR1 does not exist on windows 2025-07-04 12:56:09 +02:00
Bartosz Taudul
cacd71c401 Add arena allocator test. 2024-10-21 18:22:22 +02:00
Bartosz Taudul
b18796c1c0 Add text formatting function to test. 2024-08-08 19:52:47 +02:00
Bartosz Taudul
9a9f1c2ab9 Set plot thread group hint to -1 in the test application. 2024-08-03 19:41:44 +02:00
Grégoire Roussel
7a74d38198 (review) use signal.h 2024-07-17 18:19:33 +02:00
Grégoire Roussel
82fd4075f9 [test] Trigger failures via USR1/USR2
USR1: abort the program
USR2: send buggy free event, to trigger an instrumentation failure
2024-07-17 17:30:52 +02:00
Grégoire Roussel
9cf61d6597 [build-system] Migrate test/ directory to CMakeLists
- remove MakeFile, replaced with equivalent CMakeLists.txt
- add advanced option TRACY_DEMANGLE in client for CI testing
2024-07-03 14:05:49 +02:00
Bartosz Taudul
06c7984a16 Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00
Bartosz Taudul
d71ecd5271 Make test program data generation rate more sensible. 2022-04-29 19:12:20 +02:00
Bartosz Taudul
4537276e98 Custom allocator test. 2020-09-24 01:31:23 +02:00
Bartosz Taudul
35f939165d Don't sleep in test application's fibonacci thread. 2020-08-12 23:55:49 +02:00
Bartosz Taudul
ce15ad763f Check for shared mutex availability. 2020-05-13 18:11:48 +02:00
Bartosz Taudul
92b6da7cc2 SetThreadName() only works on the current thread.
This breaking change is required, because kernel trace facilities use
kernel thread ids, which are inaccessible from the pthread_t level.
2019-08-14 02:22:45 +02:00
Bartosz Taudul
5c1bae812a Add frame images to test application. 2019-06-13 01:53:47 +02:00
Bartosz Taudul
420a50feea Function inlining test. 2019-01-20 16:55:09 +01:00
Bartosz Taudul
73cbd7dc3a Add deadlock test. 2019-01-14 18:48:16 +01:00
Bartosz Taudul
0b568d55ba Add thread that only allocates memory. 2018-08-28 01:48:03 +02:00
Bartosz Taudul
c4ea13dab5 Static initialization order test. 2018-08-13 12:13:28 +02:00
Bartosz Taudul
9308d7964c Callstack capture timing test. 2018-06-24 17:55:05 +02:00
Bartosz Taudul
6c9add0f30 Track memory allocations in test application. 2018-06-20 19:48:14 +02:00
Bartosz Taudul
09304390dd Overload operator new and delete in test. 2018-06-20 19:45:20 +02:00
Bartosz Taudul
1bddf76f8d Improve shared locks timing. 2017-12-10 21:59:17 +01:00
Bartosz Taudul
06fcb24440 Use shared lockable wrappers in test. 2017-12-10 21:52:26 +01:00
Bartosz Taudul
171e962f97 Shared mutex test. 2017-12-10 20:36:10 +01:00
Bartosz Taudul
540f71cfd6 Use new interface in test. 2017-11-15 10:56:19 +01:00
Bartosz Taudul
52430d08b7 Add recursive mutex test. 2017-10-25 23:08:14 +02:00
Bartosz Taudul
cc8683a399 Store TextData pointer as an index in array.
This further reduces ZoneEvent size by 4 bytes.
2017-10-22 16:40:15 +02:00
Bartosz Taudul
56d2842e2e Add depth test (fibonacci). 2017-10-22 15:57:08 +02:00
Bartosz Taudul
3a0d77a35a Send messages in test application. 2017-10-20 18:30:28 +02:00
Bartosz Taudul
57454d3985 Add plots to test application. 2017-10-19 18:57:41 +02:00
Bartosz Taudul
518568a513 Move client/Tracy.hpp -> Tracy.hpp. 2017-10-16 21:28:38 +02:00
Bartosz Taudul
2011524a2d Add third locking thread to test application. 2017-10-08 21:01:49 +02:00
Bartosz Taudul
ad28bdf85d Mark locks in test application. 2017-10-06 18:15:00 +02:00
Bartosz Taudul
e7e41f1e5c Use lockable wrapper in test program. 2017-10-04 15:41:23 +02:00
Bartosz Taudul
740a132f56 Basic thread test setup. 2017-10-04 01:39:43 +02:00
Bartosz Taudul
b89adbaf8c Add second scope test. 2017-09-23 21:37:14 +02:00
Bartosz Taudul
f47b7a1cdf Add simple test application. 2017-09-22 19:32:49 +02:00