Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
770
third-party/vendor/tracy-client-sys/src/generated.rs
vendored
Normal file
770
third-party/vendor/tracy-client-sys/src/generated.rs
vendored
Normal file
|
|
@ -0,0 +1,770 @@
|
|||
extern "C" {
|
||||
pub fn ___tracy_set_thread_name(name: *const ::std::os::raw::c_char);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct ___tracy_source_location_data {
|
||||
pub name: *const ::std::os::raw::c_char,
|
||||
pub function: *const ::std::os::raw::c_char,
|
||||
pub file: *const ::std::os::raw::c_char,
|
||||
pub line: u32,
|
||||
pub color: u32,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout____tracy_source_location_data() {
|
||||
const UNINIT: ::std::mem::MaybeUninit<___tracy_source_location_data> =
|
||||
::std::mem::MaybeUninit::uninit();
|
||||
let ptr = UNINIT.as_ptr();
|
||||
assert_eq!(
|
||||
::std::mem::size_of::<___tracy_source_location_data>(),
|
||||
32usize,
|
||||
concat!("Size of: ", stringify!(___tracy_source_location_data))
|
||||
);
|
||||
assert_eq!(
|
||||
::std::mem::align_of::<___tracy_source_location_data>(),
|
||||
8usize,
|
||||
concat!("Alignment of ", stringify!(___tracy_source_location_data))
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
|
||||
0usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_source_location_data),
|
||||
"::",
|
||||
stringify!(name)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).function) as usize - ptr as usize },
|
||||
8usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_source_location_data),
|
||||
"::",
|
||||
stringify!(function)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).file) as usize - ptr as usize },
|
||||
16usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_source_location_data),
|
||||
"::",
|
||||
stringify!(file)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).line) as usize - ptr as usize },
|
||||
24usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_source_location_data),
|
||||
"::",
|
||||
stringify!(line)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).color) as usize - ptr as usize },
|
||||
28usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_source_location_data),
|
||||
"::",
|
||||
stringify!(color)
|
||||
)
|
||||
);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct ___tracy_c_zone_context {
|
||||
pub id: u32,
|
||||
pub active: ::std::os::raw::c_int,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout____tracy_c_zone_context() {
|
||||
const UNINIT: ::std::mem::MaybeUninit<___tracy_c_zone_context> =
|
||||
::std::mem::MaybeUninit::uninit();
|
||||
let ptr = UNINIT.as_ptr();
|
||||
assert_eq!(
|
||||
::std::mem::size_of::<___tracy_c_zone_context>(),
|
||||
8usize,
|
||||
concat!("Size of: ", stringify!(___tracy_c_zone_context))
|
||||
);
|
||||
assert_eq!(
|
||||
::std::mem::align_of::<___tracy_c_zone_context>(),
|
||||
4usize,
|
||||
concat!("Alignment of ", stringify!(___tracy_c_zone_context))
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).id) as usize - ptr as usize },
|
||||
0usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_c_zone_context),
|
||||
"::",
|
||||
stringify!(id)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).active) as usize - ptr as usize },
|
||||
4usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_c_zone_context),
|
||||
"::",
|
||||
stringify!(active)
|
||||
)
|
||||
);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct ___tracy_gpu_time_data {
|
||||
pub gpuTime: i64,
|
||||
pub queryId: u16,
|
||||
pub context: u8,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout____tracy_gpu_time_data() {
|
||||
const UNINIT: ::std::mem::MaybeUninit<___tracy_gpu_time_data> =
|
||||
::std::mem::MaybeUninit::uninit();
|
||||
let ptr = UNINIT.as_ptr();
|
||||
assert_eq!(
|
||||
::std::mem::size_of::<___tracy_gpu_time_data>(),
|
||||
16usize,
|
||||
concat!("Size of: ", stringify!(___tracy_gpu_time_data))
|
||||
);
|
||||
assert_eq!(
|
||||
::std::mem::align_of::<___tracy_gpu_time_data>(),
|
||||
8usize,
|
||||
concat!("Alignment of ", stringify!(___tracy_gpu_time_data))
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).gpuTime) as usize - ptr as usize },
|
||||
0usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_time_data),
|
||||
"::",
|
||||
stringify!(gpuTime)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).queryId) as usize - ptr as usize },
|
||||
8usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_time_data),
|
||||
"::",
|
||||
stringify!(queryId)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize },
|
||||
10usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_time_data),
|
||||
"::",
|
||||
stringify!(context)
|
||||
)
|
||||
);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct ___tracy_gpu_zone_begin_data {
|
||||
pub srcloc: u64,
|
||||
pub queryId: u16,
|
||||
pub context: u8,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout____tracy_gpu_zone_begin_data() {
|
||||
const UNINIT: ::std::mem::MaybeUninit<___tracy_gpu_zone_begin_data> =
|
||||
::std::mem::MaybeUninit::uninit();
|
||||
let ptr = UNINIT.as_ptr();
|
||||
assert_eq!(
|
||||
::std::mem::size_of::<___tracy_gpu_zone_begin_data>(),
|
||||
16usize,
|
||||
concat!("Size of: ", stringify!(___tracy_gpu_zone_begin_data))
|
||||
);
|
||||
assert_eq!(
|
||||
::std::mem::align_of::<___tracy_gpu_zone_begin_data>(),
|
||||
8usize,
|
||||
concat!("Alignment of ", stringify!(___tracy_gpu_zone_begin_data))
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).srcloc) as usize - ptr as usize },
|
||||
0usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_zone_begin_data),
|
||||
"::",
|
||||
stringify!(srcloc)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).queryId) as usize - ptr as usize },
|
||||
8usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_zone_begin_data),
|
||||
"::",
|
||||
stringify!(queryId)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize },
|
||||
10usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_zone_begin_data),
|
||||
"::",
|
||||
stringify!(context)
|
||||
)
|
||||
);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct ___tracy_gpu_zone_begin_callstack_data {
|
||||
pub srcloc: u64,
|
||||
pub depth: ::std::os::raw::c_int,
|
||||
pub queryId: u16,
|
||||
pub context: u8,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout____tracy_gpu_zone_begin_callstack_data() {
|
||||
const UNINIT: ::std::mem::MaybeUninit<___tracy_gpu_zone_begin_callstack_data> =
|
||||
::std::mem::MaybeUninit::uninit();
|
||||
let ptr = UNINIT.as_ptr();
|
||||
assert_eq!(
|
||||
::std::mem::size_of::<___tracy_gpu_zone_begin_callstack_data>(),
|
||||
16usize,
|
||||
concat!(
|
||||
"Size of: ",
|
||||
stringify!(___tracy_gpu_zone_begin_callstack_data)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
::std::mem::align_of::<___tracy_gpu_zone_begin_callstack_data>(),
|
||||
8usize,
|
||||
concat!(
|
||||
"Alignment of ",
|
||||
stringify!(___tracy_gpu_zone_begin_callstack_data)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).srcloc) as usize - ptr as usize },
|
||||
0usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_zone_begin_callstack_data),
|
||||
"::",
|
||||
stringify!(srcloc)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).depth) as usize - ptr as usize },
|
||||
8usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_zone_begin_callstack_data),
|
||||
"::",
|
||||
stringify!(depth)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).queryId) as usize - ptr as usize },
|
||||
12usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_zone_begin_callstack_data),
|
||||
"::",
|
||||
stringify!(queryId)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize },
|
||||
14usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_zone_begin_callstack_data),
|
||||
"::",
|
||||
stringify!(context)
|
||||
)
|
||||
);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct ___tracy_gpu_zone_end_data {
|
||||
pub queryId: u16,
|
||||
pub context: u8,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout____tracy_gpu_zone_end_data() {
|
||||
const UNINIT: ::std::mem::MaybeUninit<___tracy_gpu_zone_end_data> =
|
||||
::std::mem::MaybeUninit::uninit();
|
||||
let ptr = UNINIT.as_ptr();
|
||||
assert_eq!(
|
||||
::std::mem::size_of::<___tracy_gpu_zone_end_data>(),
|
||||
4usize,
|
||||
concat!("Size of: ", stringify!(___tracy_gpu_zone_end_data))
|
||||
);
|
||||
assert_eq!(
|
||||
::std::mem::align_of::<___tracy_gpu_zone_end_data>(),
|
||||
2usize,
|
||||
concat!("Alignment of ", stringify!(___tracy_gpu_zone_end_data))
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).queryId) as usize - ptr as usize },
|
||||
0usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_zone_end_data),
|
||||
"::",
|
||||
stringify!(queryId)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize },
|
||||
2usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_zone_end_data),
|
||||
"::",
|
||||
stringify!(context)
|
||||
)
|
||||
);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct ___tracy_gpu_new_context_data {
|
||||
pub gpuTime: i64,
|
||||
pub period: f32,
|
||||
pub context: u8,
|
||||
pub flags: u8,
|
||||
pub type_: u8,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout____tracy_gpu_new_context_data() {
|
||||
const UNINIT: ::std::mem::MaybeUninit<___tracy_gpu_new_context_data> =
|
||||
::std::mem::MaybeUninit::uninit();
|
||||
let ptr = UNINIT.as_ptr();
|
||||
assert_eq!(
|
||||
::std::mem::size_of::<___tracy_gpu_new_context_data>(),
|
||||
16usize,
|
||||
concat!("Size of: ", stringify!(___tracy_gpu_new_context_data))
|
||||
);
|
||||
assert_eq!(
|
||||
::std::mem::align_of::<___tracy_gpu_new_context_data>(),
|
||||
8usize,
|
||||
concat!("Alignment of ", stringify!(___tracy_gpu_new_context_data))
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).gpuTime) as usize - ptr as usize },
|
||||
0usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_new_context_data),
|
||||
"::",
|
||||
stringify!(gpuTime)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).period) as usize - ptr as usize },
|
||||
8usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_new_context_data),
|
||||
"::",
|
||||
stringify!(period)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize },
|
||||
12usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_new_context_data),
|
||||
"::",
|
||||
stringify!(context)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
|
||||
13usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_new_context_data),
|
||||
"::",
|
||||
stringify!(flags)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
|
||||
14usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_new_context_data),
|
||||
"::",
|
||||
stringify!(type_)
|
||||
)
|
||||
);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct ___tracy_gpu_context_name_data {
|
||||
pub context: u8,
|
||||
pub name: *const ::std::os::raw::c_char,
|
||||
pub len: u16,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout____tracy_gpu_context_name_data() {
|
||||
const UNINIT: ::std::mem::MaybeUninit<___tracy_gpu_context_name_data> =
|
||||
::std::mem::MaybeUninit::uninit();
|
||||
let ptr = UNINIT.as_ptr();
|
||||
assert_eq!(
|
||||
::std::mem::size_of::<___tracy_gpu_context_name_data>(),
|
||||
24usize,
|
||||
concat!("Size of: ", stringify!(___tracy_gpu_context_name_data))
|
||||
);
|
||||
assert_eq!(
|
||||
::std::mem::align_of::<___tracy_gpu_context_name_data>(),
|
||||
8usize,
|
||||
concat!("Alignment of ", stringify!(___tracy_gpu_context_name_data))
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize },
|
||||
0usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_context_name_data),
|
||||
"::",
|
||||
stringify!(context)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
|
||||
8usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_context_name_data),
|
||||
"::",
|
||||
stringify!(name)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize },
|
||||
16usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_context_name_data),
|
||||
"::",
|
||||
stringify!(len)
|
||||
)
|
||||
);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct ___tracy_gpu_calibration_data {
|
||||
pub gpuTime: i64,
|
||||
pub cpuDelta: i64,
|
||||
pub context: u8,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout____tracy_gpu_calibration_data() {
|
||||
const UNINIT: ::std::mem::MaybeUninit<___tracy_gpu_calibration_data> =
|
||||
::std::mem::MaybeUninit::uninit();
|
||||
let ptr = UNINIT.as_ptr();
|
||||
assert_eq!(
|
||||
::std::mem::size_of::<___tracy_gpu_calibration_data>(),
|
||||
24usize,
|
||||
concat!("Size of: ", stringify!(___tracy_gpu_calibration_data))
|
||||
);
|
||||
assert_eq!(
|
||||
::std::mem::align_of::<___tracy_gpu_calibration_data>(),
|
||||
8usize,
|
||||
concat!("Alignment of ", stringify!(___tracy_gpu_calibration_data))
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).gpuTime) as usize - ptr as usize },
|
||||
0usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_calibration_data),
|
||||
"::",
|
||||
stringify!(gpuTime)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).cpuDelta) as usize - ptr as usize },
|
||||
8usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_calibration_data),
|
||||
"::",
|
||||
stringify!(cpuDelta)
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize },
|
||||
16usize,
|
||||
concat!(
|
||||
"Offset of field: ",
|
||||
stringify!(___tracy_gpu_calibration_data),
|
||||
"::",
|
||||
stringify!(context)
|
||||
)
|
||||
);
|
||||
}
|
||||
type TracyCZoneCtx = ___tracy_c_zone_context;
|
||||
extern "C" {
|
||||
pub fn ___tracy_alloc_srcloc(
|
||||
line: u32,
|
||||
source: *const ::std::os::raw::c_char,
|
||||
sourceSz: usize,
|
||||
function: *const ::std::os::raw::c_char,
|
||||
functionSz: usize,
|
||||
) -> u64;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_alloc_srcloc_name(
|
||||
line: u32,
|
||||
source: *const ::std::os::raw::c_char,
|
||||
sourceSz: usize,
|
||||
function: *const ::std::os::raw::c_char,
|
||||
functionSz: usize,
|
||||
name: *const ::std::os::raw::c_char,
|
||||
nameSz: usize,
|
||||
) -> u64;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_zone_begin(
|
||||
srcloc: *const ___tracy_source_location_data,
|
||||
active: ::std::os::raw::c_int,
|
||||
) -> TracyCZoneCtx;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_zone_begin_callstack(
|
||||
srcloc: *const ___tracy_source_location_data,
|
||||
depth: ::std::os::raw::c_int,
|
||||
active: ::std::os::raw::c_int,
|
||||
) -> TracyCZoneCtx;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_zone_begin_alloc(
|
||||
srcloc: u64,
|
||||
active: ::std::os::raw::c_int,
|
||||
) -> TracyCZoneCtx;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_zone_begin_alloc_callstack(
|
||||
srcloc: u64,
|
||||
depth: ::std::os::raw::c_int,
|
||||
active: ::std::os::raw::c_int,
|
||||
) -> TracyCZoneCtx;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_zone_end(ctx: TracyCZoneCtx);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_zone_text(
|
||||
ctx: TracyCZoneCtx,
|
||||
txt: *const ::std::os::raw::c_char,
|
||||
size: usize,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_zone_name(
|
||||
ctx: TracyCZoneCtx,
|
||||
txt: *const ::std::os::raw::c_char,
|
||||
size: usize,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_zone_color(ctx: TracyCZoneCtx, color: u32);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_zone_value(ctx: TracyCZoneCtx, value: u64);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_zone_begin(arg1: ___tracy_gpu_zone_begin_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_zone_begin_callstack(arg1: ___tracy_gpu_zone_begin_callstack_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_zone_begin_alloc(arg1: ___tracy_gpu_zone_begin_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_zone_begin_alloc_callstack(
|
||||
arg1: ___tracy_gpu_zone_begin_callstack_data,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_zone_end(data: ___tracy_gpu_zone_end_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_time(arg1: ___tracy_gpu_time_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_new_context(arg1: ___tracy_gpu_new_context_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_context_name(arg1: ___tracy_gpu_context_name_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_calibration(arg1: ___tracy_gpu_calibration_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_zone_begin_serial(arg1: ___tracy_gpu_zone_begin_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_zone_begin_callstack_serial(
|
||||
arg1: ___tracy_gpu_zone_begin_callstack_data,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_zone_begin_alloc_serial(arg1: ___tracy_gpu_zone_begin_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_zone_begin_alloc_callstack_serial(
|
||||
arg1: ___tracy_gpu_zone_begin_callstack_data,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_zone_end_serial(data: ___tracy_gpu_zone_end_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_time_serial(arg1: ___tracy_gpu_time_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_new_context_serial(arg1: ___tracy_gpu_new_context_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_context_name_serial(arg1: ___tracy_gpu_context_name_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_gpu_calibration_serial(arg1: ___tracy_gpu_calibration_data);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_connected() -> ::std::os::raw::c_int;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_memory_alloc(
|
||||
ptr: *const ::std::os::raw::c_void,
|
||||
size: usize,
|
||||
secure: ::std::os::raw::c_int,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_memory_alloc_callstack(
|
||||
ptr: *const ::std::os::raw::c_void,
|
||||
size: usize,
|
||||
depth: ::std::os::raw::c_int,
|
||||
secure: ::std::os::raw::c_int,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_memory_free(
|
||||
ptr: *const ::std::os::raw::c_void,
|
||||
secure: ::std::os::raw::c_int,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_memory_free_callstack(
|
||||
ptr: *const ::std::os::raw::c_void,
|
||||
depth: ::std::os::raw::c_int,
|
||||
secure: ::std::os::raw::c_int,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_memory_alloc_named(
|
||||
ptr: *const ::std::os::raw::c_void,
|
||||
size: usize,
|
||||
secure: ::std::os::raw::c_int,
|
||||
name: *const ::std::os::raw::c_char,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_memory_alloc_callstack_named(
|
||||
ptr: *const ::std::os::raw::c_void,
|
||||
size: usize,
|
||||
depth: ::std::os::raw::c_int,
|
||||
secure: ::std::os::raw::c_int,
|
||||
name: *const ::std::os::raw::c_char,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_memory_free_named(
|
||||
ptr: *const ::std::os::raw::c_void,
|
||||
secure: ::std::os::raw::c_int,
|
||||
name: *const ::std::os::raw::c_char,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_memory_free_callstack_named(
|
||||
ptr: *const ::std::os::raw::c_void,
|
||||
depth: ::std::os::raw::c_int,
|
||||
secure: ::std::os::raw::c_int,
|
||||
name: *const ::std::os::raw::c_char,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_message(
|
||||
txt: *const ::std::os::raw::c_char,
|
||||
size: usize,
|
||||
callstack: ::std::os::raw::c_int,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_messageL(
|
||||
txt: *const ::std::os::raw::c_char,
|
||||
callstack: ::std::os::raw::c_int,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_messageC(
|
||||
txt: *const ::std::os::raw::c_char,
|
||||
size: usize,
|
||||
color: u32,
|
||||
callstack: ::std::os::raw::c_int,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_messageLC(
|
||||
txt: *const ::std::os::raw::c_char,
|
||||
color: u32,
|
||||
callstack: ::std::os::raw::c_int,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_frame_mark(name: *const ::std::os::raw::c_char);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_frame_mark_start(name: *const ::std::os::raw::c_char);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_frame_mark_end(name: *const ::std::os::raw::c_char);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_frame_image(
|
||||
image: *const ::std::os::raw::c_void,
|
||||
w: u16,
|
||||
h: u16,
|
||||
offset: u8,
|
||||
flip: ::std::os::raw::c_int,
|
||||
);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_plot(name: *const ::std::os::raw::c_char, val: f64);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_plot_float(name: *const ::std::os::raw::c_char, val: f32);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_plot_int(name: *const ::std::os::raw::c_char, val: i64);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_emit_message_appinfo(txt: *const ::std::os::raw::c_char, size: usize);
|
||||
}
|
||||
6
third-party/vendor/tracy-client-sys/src/generated_fibers.rs
vendored
Normal file
6
third-party/vendor/tracy-client-sys/src/generated_fibers.rs
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
extern "C" {
|
||||
pub fn ___tracy_fiber_enter(fiber: *const ::std::os::raw::c_char);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_fiber_leave();
|
||||
}
|
||||
6
third-party/vendor/tracy-client-sys/src/generated_manual_lifetime.rs
vendored
Normal file
6
third-party/vendor/tracy-client-sys/src/generated_manual_lifetime.rs
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
extern "C" {
|
||||
pub fn ___tracy_startup_profiler();
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ___tracy_shutdown_profiler();
|
||||
}
|
||||
46
third-party/vendor/tracy-client-sys/src/lib.rs
vendored
Normal file
46
third-party/vendor/tracy-client-sys/src/lib.rs
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
//! The Tracy Client and its low level API
|
||||
//!
|
||||
//! This crate embeds the C++ Tracy client library and exposes its API. For a higher-level API
|
||||
//! consider the `tracy-client` crate.
|
||||
//!
|
||||
//! # Important note
|
||||
//!
|
||||
//! Depending on the configuration Tracy may broadcast discovery packets to the local network and
|
||||
//! expose the data it collects in the background to that same network. Traces collected by Tracy
|
||||
//! may include source and assembly code as well.
|
||||
//!
|
||||
//! As thus, you may want make sure to only enable the `tracy-client-sys` crate conditionally, via
|
||||
//! the `enable` feature flag provided by this crate.
|
||||
//!
|
||||
//! In order to start tracing it is important that you first call the [`___tracy_startup_profiler`]
|
||||
//! function first to initialize the client. The [`___tracy_shutdown_profiler`] must not be called
|
||||
//! until it is guaranteed that there will be no more calls to any other Tracy APIs. This can be
|
||||
//! especially difficult to ensure if you have detached threads.
|
||||
//!
|
||||
//! # Features
|
||||
//!
|
||||
//! The following crate features are provided to customize the functionality of the Tracy client:
|
||||
//!
|
||||
//! * `manual-lifetime` – disables Tracy’s life-before-main initialization, requiring manual
|
||||
//! initialization. Corresponds to the `TRACY_MANUAL_LIFETIME` define.
|
||||
//! * `delayed-init` – profiler data is gathered into one structure and initialized on the first
|
||||
//! request rather than statically at the DLL load at the expense of atomic load on each request
|
||||
//! to the profiler data. Corresponds to the `TRACY_DELAYED_INIT` define.
|
||||
#![doc = include_str!("../FEATURES.mkd")]
|
||||
#![allow(non_snake_case, non_camel_case_types, unused_variables, deref_nullptr)]
|
||||
#![cfg_attr(tracy_client_sys_docs, feature(doc_auto_cfg))]
|
||||
|
||||
#[cfg(feature = "enable")]
|
||||
mod generated;
|
||||
#[cfg(feature = "enable")]
|
||||
pub use generated::*;
|
||||
|
||||
#[cfg(all(feature = "enable", feature = "manual-lifetime"))]
|
||||
mod generated_manual_lifetime;
|
||||
#[cfg(all(feature = "enable", feature = "manual-lifetime"))]
|
||||
pub use generated_manual_lifetime::*;
|
||||
|
||||
#[cfg(all(feature = "enable", feature = "fibers"))]
|
||||
mod generated_fibers;
|
||||
#[cfg(all(feature = "enable", feature = "fibers"))]
|
||||
pub use generated_fibers::{___tracy_fiber_enter, ___tracy_fiber_leave};
|
||||
Loading…
Add table
Add a link
Reference in a new issue