Bartosz Taudul
0ed789825a
Measure time of initialization start.
2017-10-17 01:07:34 +02:00
Bartosz Taudul
866081bf29
Initialize tracy before anything else.
2017-10-17 00:36:15 +02:00
Bartosz Taudul
9d01b508ed
One more type cast.
2017-10-17 00:25:32 +02:00
Bartosz Taudul
8a6e4d2971
Change TRACY_DISABLE to TRACY_ENABLE.
...
By default tracy is now disabled.
2017-10-16 21:34:39 +02:00
Bartosz Taudul
518568a513
Move client/Tracy.hpp -> Tracy.hpp.
2017-10-16 21:28:38 +02:00
Bartosz Taudul
e04bd05606
Always use ShouldExit() to determine if worker should exit.
2017-10-16 21:21:42 +02:00
Bartosz Taudul
9f28205548
Use custom threading wrapper instead of std::thread.
...
std::thread may perform memory allocation when a thread is created (it
does so on MSVC). Tracy heap is managed by its own allocator and this
changes prevents accessing application heap.
2017-10-16 21:17:58 +02:00
Bartosz Taudul
2f8d3ff5eb
Add minimal thread class implementation.
2017-10-16 21:17:58 +02:00
Bartosz Taudul
dafec48319
PAGE_SIZE is already defined in limits.h.
2017-10-16 21:17:58 +02:00
Bartosz Taudul
65c000718b
Do not redefine assert macro.
2017-10-16 21:17:58 +02:00
Bartosz Taudul
31fc2335dd
Silence some type mismatch warnings.
2017-10-16 21:17:58 +02:00
Bartosz Taudul
3554e4c4ac
Prevent clash of likely/unlikely with possible macros.
2017-10-16 21:17:58 +02:00
Bartosz Taudul
5b9fcddfb3
String literal message transfer.
2017-10-15 13:06:49 +02:00
Bartosz Taudul
95439a726a
Fix typo.
2017-10-15 13:06:20 +02:00
Bartosz Taudul
9a60c3fb6e
Remove unused variable.
2017-10-14 20:03:55 +02:00
Bartosz Taudul
e496f24427
Use standard c++ features.
2017-10-14 18:48:35 +02:00
Bartosz Taudul
bded83e458
Don't include headers in a namespace.
2017-10-14 18:02:01 +02:00
Bartosz Taudul
dc25c46dee
No need to init/destroy queue item memory.
2017-10-14 17:39:43 +02:00
Bartosz Taudul
472b5a521f
Preallocation size is in number of elements, not bytes.
2017-10-14 17:33:05 +02:00
Bartosz Taudul
40bc4c8015
Missing include.
2017-10-14 17:21:14 +02:00
Bartosz Taudul
19011b3798
Use rpmalloc in concurrentqueue.
2017-10-14 17:19:27 +02:00
Bartosz Taudul
c497966c7f
Use rpmalloc to allocate tracy client memory.
2017-10-14 17:15:18 +02:00
Bartosz Taudul
e8968efea7
Initialize rpmalloc.
2017-10-14 17:00:25 +02:00
Bartosz Taudul
b75317be7d
Wrap malloc/free.
2017-10-14 16:52:05 +02:00
Bartosz Taudul
b117c56257
Wrap rpmalloc in tracy namespace.
2017-10-14 16:50:08 +02:00
Bartosz Taudul
709d86ad0c
Add rpmalloc.
...
https://github.com/rampantpixels/rpmalloc/tree/master/rpmalloc
2592b551b26d0ac9d1c92db3c1ae6c0ce5cd447a
2017-10-14 16:43:26 +02:00
Bartosz Taudul
fa8030009f
Store messages.
2017-10-14 14:28:04 +02:00
Bartosz Taudul
8c7b60fbe6
Allow sending text messages.
2017-10-14 13:23:13 +02:00
Bartosz Taudul
57afeb4588
Queue MUST allocate memory.
2017-10-13 20:33:53 +02:00
Bartosz Taudul
7f36bb6846
Mark unlikely code path.
...
It also changes MSVC behavior from generating two jumps to just one.
2017-10-13 20:24:11 +02:00
Bartosz Taudul
1aaab3c5e4
Use 32 bits to store lock id.
...
This makes queue item size 32 bytes. Queue operations can now be faster,
because multiplication by 33 is replaced by shift by 5.
2017-10-13 20:05:38 +02:00
Bartosz Taudul
ec789d60e8
Store source location color in 24 bits.
2017-10-13 19:59:18 +02:00
Bartosz Taudul
fe0366c792
Receive plot data.
2017-10-13 03:36:59 +02:00
Bartosz Taudul
cb0011755d
Prevent type conversions.
2017-10-13 02:21:29 +02:00
Bartosz Taudul
f0484b50ca
Plot data transfer.
2017-10-13 02:07:03 +02:00
Bartosz Taudul
737671adbf
Remove lock announce message.
...
This removes problem with static initialization order of mutices vs
tracy.
Lock source location is now transferred in lock wait message.
2017-10-12 20:14:17 +02:00
Bartosz Taudul
c42106f4ff
Add named version of TracyLockable.
2017-10-12 20:00:53 +02:00
Bartosz Taudul
e23da05a65
Workaround gcc stupidity.
2017-10-11 01:44:35 +02:00
Bartosz Taudul
77dfefb5d0
Remove one stack address load.
2017-10-11 01:27:22 +02:00
Bartosz Taudul
af3773dc9a
Remove one level of indirection.
2017-10-11 01:04:21 +02:00
Bartosz Taudul
cc8b357f09
Avoid excessive stack operations for cpu query.
2017-10-10 23:21:30 +02:00
Bartosz Taudul
75457c1465
Remove +x flag from files.
2017-10-10 21:56:15 +02:00
Bartosz Taudul
2c252226fc
Force proper initialization order on gcc.
2017-10-09 00:39:12 +02:00
Bartosz Taudul
ef525067c5
Mark tracy::Lockable<>::Mark() as const.
2017-10-06 17:14:57 +02:00
Bartosz Taudul
9736be0321
Force inline lock operations.
2017-10-06 17:05:31 +02:00
Bartosz Taudul
dcd89f894c
Add lock marking.
2017-10-06 16:32:32 +02:00
Bartosz Taudul
5f9228d4e6
Fix typo.
2017-10-05 03:07:26 +02:00
Bartosz Taudul
06a08816bd
Include data type in tracy::Lockable name.
2017-10-04 18:32:53 +02:00
Bartosz Taudul
8c90eab044
Let's not worry about lock memory reuse.
2017-10-04 16:51:51 +02:00
Bartosz Taudul
0011573fa9
Send lock events.
2017-10-04 16:45:46 +02:00