Bartosz Taudul
d7541bbdba
Allow disabling inline resolution on windows.
...
Original commit a6b25497 by xavier <xavierb@gmail.com>:
add TRACY_CALLSTACK_IGNORE_INLINES to tradeoff speed vs precision in win32 DecodeCallstackPtr()
SymQueryInlineTrace() is too slow in some cases:
300000 queries backlog getting processed at ~70 per second is prohibitive.
(without inlines resolution, it's more like ~20000 queries per second)
2021-05-21 22:27:35 +02:00
Bartosz Taudul
3d2ff4ffd1
Add support for user-provided dbghelp locks.
2020-10-28 20:04:37 +01:00
Bartosz Taudul
960c7fb1b9
Don't alias struct names in client and server.
2020-08-20 17:38:29 +02:00
Bartosz Taudul
818d20d273
Don't use image name as a replacement for source file.
...
Image name is now reported separately.
2020-08-18 20:34:11 +02:00
Bartosz Taudul
65314e0c90
Set proper SymbolData contents on symbol retrieval error.
2020-06-04 17:46:39 +02:00
Bartosz Taudul
54eb75b063
Report symbol entry address in inline function discovery.
2020-05-30 15:38:59 +02:00
Bartosz Taudul
91bb392678
Avoid executing strlen() twice in assert-enabled builds.
2020-05-10 15:55:12 +02:00
Rokas Kupstys
04eaf358d0
Fix linking error in some configurations. Unresolved CallTrace symbol was observed in static MSVC RelWithDebInfo build (but not in debug build).
2020-05-05 13:23:46 +03:00
Bartosz Taudul
34b512d04b
Don't declare unused variables on cygwin.
2020-04-07 21:41:12 +02:00
Bartosz Taudul
8d9a611874
Get rid of unicode ifdefs.
2020-04-07 21:35:37 +02:00
Bartosz Taudul
0ba0125eb5
Cosmetics.
2020-04-01 21:42:14 +02:00
Bartosz Taudul
a8e8a4a167
Add code address to function, line decoder.
2020-04-01 21:41:33 +02:00
Bartosz Taudul
36ddd0b98b
Don't use new to allocate memory on the client.
2020-03-28 21:27:19 +01:00
Bartosz Taudul
d47e6819a8
Collect symbol sizes.
2020-03-25 18:28:28 +01:00
Bartosz Taudul
710a2a64e4
Fix copy pasta.
2020-02-27 14:08:56 +01:00
Bartosz Taudul
4346620afa
No need to copy module name.
2020-02-27 13:45:39 +01:00
Bartosz Taudul
fd8a9465d4
Cosmetics.
2020-02-27 13:40:41 +01:00
Bartosz Taudul
9ae71ac4ee
Dl_info doesn't destroy data.
2020-02-27 13:28:45 +01:00
Bartosz Taudul
5f6b3d2cd5
No need for module name intermediate buffer.
2020-02-27 13:24:36 +01:00
Bartosz Taudul
474383b656
Only copy symbol strings, if needed.
2020-02-27 13:17:26 +01:00
Bartosz Taudul
2df6f9068a
Don't retrieve symbol name for address.
2020-02-27 12:58:01 +01:00
Bartosz Taudul
56dce646cc
Symbol address decoding on unix.
2020-02-26 23:38:04 +01:00
Bartosz Taudul
4ddafdeeaf
Symbol address decoding for old androids.
2020-02-26 23:24:18 +01:00
Bartosz Taudul
7c506d5426
Remove unused variables.
2020-02-26 23:24:11 +01:00
Bartosz Taudul
ef05570540
Symbol address decoding (win32 implementation).
2020-02-26 22:32:42 +01:00
Bartosz Taudul
03ff08a934
Increase max name size.
2020-02-26 22:32:09 +01:00
Bartosz Taudul
d1fcf80c2d
Move definition of max symbol name size to one place.
2020-02-26 22:30:11 +01:00
Bartosz Taudul
c0f49c648b
Validate size.
2020-02-26 22:27:10 +01:00
Bartosz Taudul
890cec9872
Retrieve symbol addresses on unix.
2020-02-26 02:25:45 +01:00
Bartosz Taudul
9231261d73
Retrieve image name on unix.
2020-02-26 02:11:51 +01:00
Bartosz Taudul
fe80a7ed46
Retrieve symbol address on old androids.
2020-02-26 02:06:44 +01:00
Bartosz Taudul
7d0dac9ae2
Store callstack frame module name.
2020-02-26 00:32:47 +01:00
Bartosz Taudul
4cf520db93
Unify copying symbol strings.
2020-02-26 00:02:30 +01:00
Bartosz Taudul
3402d16548
Send symbol base address.
2020-02-25 23:03:40 +01:00
Bartosz Taudul
85ffe0ea04
Don't search module list for kernel addresses.
2020-02-24 23:04:53 +01:00
Bartosz Taudul
9c9e854005
Replace list with vector.
...
Maybe next time let's not forget that there's already a custom
allocating vector available.
2020-02-24 23:04:53 +01:00
Bartosz Taudul
26b13abac8
Pre-fill module cache.
2020-02-22 21:32:18 +01:00
Bartosz Taudul
0a02cf32be
Add module name cache.
2020-02-22 21:32:10 +01:00
Bartosz Taudul
096e8cd8ae
Retrieve module name if symbol name cannot be found.
2020-02-22 21:06:32 +01:00
Bartosz Taudul
13370dc01c
Hide RtlWalkFrameChain inside library.
2020-01-25 16:49:29 +01:00
thedmd
a1e2c533f6
libbacktrace: Add support for Mach-O (dSYM)
...
`macho.cpp` was backported from official libbacktrace repository.
2019-11-29 12:04:47 +01:00
Bartosz Taudul
c7a22cc1ff
Use libbacktrace on BSD.
2019-11-21 20:41:57 +01:00
Bartosz Taudul
6bbf273581
Partial header inclusion cleanup.
2019-11-05 20:09:40 +01:00
Bartosz Taudul
707f113bda
Add missing NOMINMAX definitions.
2019-10-10 20:29:06 +02:00
Rokas Kupstys
b391e4c21a
Fix multiple build errors when compiling with MinGW.
2019-08-04 15:49:46 +03:00
Bartosz Taudul
340837e202
Callstack decode for android api <= 21.
...
libbacktrace/elf.cpp:3249:3: error: use of undeclared identifier 'dl_iterate_phdr'
2019-05-22 14:14:30 +02:00
Bartosz Taudul
84efe070fe
Make callstack logic more obvious.
2019-05-22 14:05:44 +02:00
Bartosz Taudul
17fb589415
Try dladdr() resolution if libbacktrace fails.
2019-03-05 20:43:47 +01:00
Bartosz Taudul
49f1277e55
Cast void* to char*.
2019-03-05 20:20:55 +01:00
Bartosz Taudul
4509412efb
Fast callstack retrieval for linux.
2019-03-05 18:56:39 +01:00