Partial header inclusion cleanup.

This commit is contained in:
Bartosz Taudul 2019-11-05 20:09:40 +01:00
parent 25c39a3311
commit 6bbf273581
6 changed files with 9 additions and 10 deletions

View File

@ -1,5 +1,5 @@
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include "TracyCallstack.hpp"
#ifdef TRACY_HAS_CALLSTACK
@ -89,7 +89,8 @@ CallstackEntryData DecodeCallstackPtr( uint64_t ptr )
int write;
const auto proc = GetCurrentProcess();
#ifndef __CYGWIN__
const auto inlineNum = std::min<DWORD>( MaxCbTrace - 1, SymAddrIncludeInlineTrace( proc, ptr ) );
DWORD inlineNum = SymAddrIncludeInlineTrace( proc, ptr );
if( inlineNum > MaxCbTrace - 1 ) inlineNum = MaxCbTrace - 1;
DWORD ctx = 0;
DWORD idx;
BOOL doInline = FALSE;

View File

@ -20,7 +20,6 @@ extern "C"
#include <assert.h>
#include <stdint.h>
#include <string.h>
#include "../common/TracyAlloc.hpp"
#include "../common/TracyForceInline.hpp"

View File

@ -3,20 +3,17 @@
#include <assert.h>
#include <atomic>
#include <chrono>
#include <stdint.h>
#include <string.h>
#include "tracy_concurrentqueue.h"
#include "TracyCallstack.hpp"
#include "TracySysTime.hpp"
#include "TracySysTrace.hpp"
#include "TracyFastVector.hpp"
#include "../common/TracyQueue.hpp"
#include "../common/TracyAlign.hpp"
#include "../common/TracyAlloc.hpp"
#include "../common/TracyMutex.hpp"
#include "../common/TracySystem.hpp"
#if defined _WIN32 || defined __CYGWIN__
# include <intrin.h>
@ -30,6 +27,10 @@
# define TRACY_HW_TIMER
#endif
#if !defined TRACY_HW_TIMER || ( __ARM_ARCH >= 6 && !defined CLOCK_MONOTONIC_RAW )
#include <chrono>
#endif
#ifndef TracyConcat
# define TracyConcat(x,y) TracyConcatIndirect(x,y)
#endif

View File

@ -5,7 +5,6 @@
# if defined _WIN32 || defined __CYGWIN__
# include <windows.h>
# elif defined __linux__
# include <assert.h>
# include <stdio.h>
# include <inttypes.h>
# elif defined __APPLE__

View File

@ -1,4 +1,3 @@
#include <algorithm>
#include <assert.h>
#include <new>
#include <stdio.h>
@ -192,7 +191,7 @@ int Socket::RecvBuffered( void* buf, int len, int timeout )
m_bufLeft = Recv( m_buf, BufSize, timeout );
if( m_bufLeft <= 0 ) return m_bufLeft;
const auto sz = std::min( len, m_bufLeft );
const auto sz = len < m_bufLeft ? len : m_bufLeft;
memcpy( buf, m_buf, sz );
m_bufPtr = m_buf + sz;
m_bufLeft -= sz;

View File

@ -5,7 +5,7 @@
# ifndef _WINDOWS_
extern "C" __declspec(dllimport) unsigned long __stdcall GetCurrentThreadId(void);
# endif
#else
#elif defined __APPLE__ || ( !defined __ANDROID__ && !defined __linux__ )
# include <pthread.h>
#endif