mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Merge pull request #488 from xxxbxxx/master
Added typed plots variants to the C API
This commit is contained in:
commit
6c74320b3e
@ -1888,6 +1888,8 @@ To send additional markup in form of plot data points or messages use the follow
|
|||||||
|
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item \texttt{TracyCPlot(name, val)}
|
\item \texttt{TracyCPlot(name, val)}
|
||||||
|
\item \texttt{TracyCPlotF(name, val)}
|
||||||
|
\item \texttt{TracyCPlotI(name, val)}
|
||||||
\item \texttt{TracyCMessage(txt, size)}
|
\item \texttt{TracyCMessage(txt, size)}
|
||||||
\item \texttt{TracyCMessageL(txt)}
|
\item \texttt{TracyCMessageL(txt)}
|
||||||
\item \texttt{TracyCMessageC(txt, size, color)}
|
\item \texttt{TracyCMessageC(txt, size, color)}
|
||||||
|
@ -4145,6 +4145,8 @@ TRACY_API void ___tracy_emit_frame_mark_start( const char* name ) { tracy::Profi
|
|||||||
TRACY_API void ___tracy_emit_frame_mark_end( const char* name ) { tracy::Profiler::SendFrameMark( name, tracy::QueueType::FrameMarkMsgEnd ); }
|
TRACY_API void ___tracy_emit_frame_mark_end( const char* name ) { tracy::Profiler::SendFrameMark( name, tracy::QueueType::FrameMarkMsgEnd ); }
|
||||||
TRACY_API void ___tracy_emit_frame_image( const void* image, uint16_t w, uint16_t h, uint8_t offset, int flip ) { tracy::Profiler::SendFrameImage( image, w, h, offset, flip ); }
|
TRACY_API void ___tracy_emit_frame_image( const void* image, uint16_t w, uint16_t h, uint8_t offset, int flip ) { tracy::Profiler::SendFrameImage( image, w, h, offset, flip ); }
|
||||||
TRACY_API void ___tracy_emit_plot( const char* name, double val ) { tracy::Profiler::PlotData( name, val ); }
|
TRACY_API void ___tracy_emit_plot( const char* name, double val ) { tracy::Profiler::PlotData( name, val ); }
|
||||||
|
TRACY_API void ___tracy_emit_plot_float( const char* name, float val ) { tracy::Profiler::PlotData( name, val ); }
|
||||||
|
TRACY_API void ___tracy_emit_plot_int( const char* name, int64_t val ) { tracy::Profiler::PlotData( name, val ); }
|
||||||
TRACY_API void ___tracy_emit_message( const char* txt, size_t size, int callstack ) { tracy::Profiler::Message( txt, size, callstack ); }
|
TRACY_API void ___tracy_emit_message( const char* txt, size_t size, int callstack ) { tracy::Profiler::Message( txt, size, callstack ); }
|
||||||
TRACY_API void ___tracy_emit_messageL( const char* txt, int callstack ) { tracy::Profiler::Message( txt, callstack ); }
|
TRACY_API void ___tracy_emit_messageL( const char* txt, int callstack ) { tracy::Profiler::Message( txt, callstack ); }
|
||||||
TRACY_API void ___tracy_emit_messageC( const char* txt, size_t size, uint32_t color, int callstack ) { tracy::Profiler::MessageColor( txt, size, color, callstack ); }
|
TRACY_API void ___tracy_emit_messageC( const char* txt, size_t size, uint32_t color, int callstack ) { tracy::Profiler::MessageColor( txt, size, color, callstack ); }
|
||||||
|
@ -47,6 +47,8 @@ typedef const void* TracyCZoneCtx;
|
|||||||
#define TracyCFrameImage(x,y,z,w,a)
|
#define TracyCFrameImage(x,y,z,w,a)
|
||||||
|
|
||||||
#define TracyCPlot(x,y)
|
#define TracyCPlot(x,y)
|
||||||
|
#define TracyCPlotF(x,y)
|
||||||
|
#define TracyCPlotI(x,y)
|
||||||
#define TracyCMessage(x,y)
|
#define TracyCMessage(x,y)
|
||||||
#define TracyCMessageL(x)
|
#define TracyCMessageL(x)
|
||||||
#define TracyCMessageC(x,y,z)
|
#define TracyCMessageC(x,y,z)
|
||||||
@ -274,9 +276,13 @@ TRACY_API void ___tracy_emit_frame_image( const void* image, uint16_t w, uint16_
|
|||||||
|
|
||||||
|
|
||||||
TRACY_API void ___tracy_emit_plot( const char* name, double val );
|
TRACY_API void ___tracy_emit_plot( const char* name, double val );
|
||||||
|
TRACY_API void ___tracy_emit_plot_float( const char* name, float val );
|
||||||
|
TRACY_API void ___tracy_emit_plot_int( const char* name, int64_t val );
|
||||||
TRACY_API void ___tracy_emit_message_appinfo( const char* txt, size_t size );
|
TRACY_API void ___tracy_emit_message_appinfo( const char* txt, size_t size );
|
||||||
|
|
||||||
#define TracyCPlot( name, val ) ___tracy_emit_plot( name, val );
|
#define TracyCPlot( name, val ) ___tracy_emit_plot( name, val );
|
||||||
|
#define TracyCPlotF( name, val ) ___tracy_emit_plot_float( name, val );
|
||||||
|
#define TracyCPlotI( name, val ) ___tracy_emit_plot_int( name, val );
|
||||||
#define TracyCAppInfo( txt, size ) ___tracy_emit_message_appinfo( txt, size );
|
#define TracyCAppInfo( txt, size ) ___tracy_emit_message_appinfo( txt, size );
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user