mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Allow disabling callstack handling.
This commit is contained in:
parent
d318f75123
commit
e2b0268d7a
@ -1,31 +1,35 @@
|
|||||||
#ifndef __TRACYCALLSTACK_H__
|
#ifndef __TRACYCALLSTACK_H__
|
||||||
#define __TRACYCALLSTACK_H__
|
#define __TRACYCALLSTACK_H__
|
||||||
|
|
||||||
#if !defined _WIN32
|
#ifndef TRACY_NO_CALLSTACK
|
||||||
# include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined _WIN32
|
# if !defined _WIN32
|
||||||
|
# include <sys/param.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# if defined _WIN32
|
||||||
# include "../common/TracyUwp.hpp"
|
# include "../common/TracyUwp.hpp"
|
||||||
# ifndef TRACY_UWP
|
# ifndef TRACY_UWP
|
||||||
# define TRACY_HAS_CALLSTACK 1
|
# define TRACY_HAS_CALLSTACK 1
|
||||||
# endif
|
# endif
|
||||||
#elif defined __ANDROID__
|
# elif defined __ANDROID__
|
||||||
# if !defined __arm__ || __ANDROID_API__ >= 21
|
# if !defined __arm__ || __ANDROID_API__ >= 21
|
||||||
# define TRACY_HAS_CALLSTACK 2
|
# define TRACY_HAS_CALLSTACK 2
|
||||||
# else
|
# else
|
||||||
# define TRACY_HAS_CALLSTACK 5
|
# define TRACY_HAS_CALLSTACK 5
|
||||||
# endif
|
# endif
|
||||||
#elif defined __linux
|
# elif defined __linux
|
||||||
# if defined _GNU_SOURCE && defined __GLIBC__
|
# if defined _GNU_SOURCE && defined __GLIBC__
|
||||||
# define TRACY_HAS_CALLSTACK 3
|
# define TRACY_HAS_CALLSTACK 3
|
||||||
# else
|
# else
|
||||||
# define TRACY_HAS_CALLSTACK 2
|
# define TRACY_HAS_CALLSTACK 2
|
||||||
# endif
|
# endif
|
||||||
#elif defined __APPLE__
|
# elif defined __APPLE__
|
||||||
# define TRACY_HAS_CALLSTACK 4
|
# define TRACY_HAS_CALLSTACK 4
|
||||||
#elif defined BSD
|
# elif defined BSD
|
||||||
# define TRACY_HAS_CALLSTACK 6
|
# define TRACY_HAS_CALLSTACK 6
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user