mirror of
https://github.com/penpot/penpot.git
synced 2025-06-18 05:51:38 +02:00
🎉 Add performance measuring functions (#6229)
This commit is contained in:
parent
97c24c8b9c
commit
d880307a9b
8 changed files with 284 additions and 26 deletions
|
@ -26,6 +26,16 @@ macro_rules! run_script_int {
|
|||
}};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! get_now {
|
||||
() => {{
|
||||
extern "C" {
|
||||
pub fn emscripten_get_now() -> f64;
|
||||
}
|
||||
unsafe { emscripten_get_now() }
|
||||
}};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! init_gl {
|
||||
() => {{
|
||||
|
@ -43,3 +53,15 @@ macro_rules! init_gl {
|
|||
}
|
||||
}};
|
||||
}
|
||||
|
||||
#[allow(unused_imports)]
|
||||
pub use run_script;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
pub use run_script_int;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
pub use get_now;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
pub use init_gl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue