all: use tracy for tracing
This commit is contained in:
parent
50186e764e
commit
ccad3cf0fb
56 changed files with 647 additions and 171 deletions
|
|
@ -251,6 +251,7 @@ struct AllocWork {
|
|||
|
||||
impl CpuWork for AllocWork {
|
||||
fn run(&mut self) -> Option<Box<dyn AsyncCpuWork>> {
|
||||
zone!("AllocWork");
|
||||
let r = do_alloc(
|
||||
&mut self.allocator.lock(),
|
||||
&self.device,
|
||||
|
|
@ -303,6 +304,7 @@ struct FreeWork {
|
|||
|
||||
impl CpuWork for FreeWork {
|
||||
fn run(&mut self) -> Option<Box<dyn AsyncCpuWork>> {
|
||||
zone!("FreeWork");
|
||||
let ua = self.allocation.take().unwrap();
|
||||
unsafe {
|
||||
do_free(&mut self.allocator.lock(), &self.device, ua.block, ua.ptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue