forked from neovide/neovide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add profiling support through Tracy Profiler (neovide#1787)
- Loading branch information
1 parent
81cd0b8
commit 5e7b1f6
Showing
14 changed files
with
479 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#[cfg(not(feature = "profiling"))] | ||
mod profiling_disabled; | ||
#[cfg(feature = "profiling")] | ||
mod profiling_enabled; | ||
|
||
#[cfg(not(feature = "profiling"))] | ||
pub use profiling_disabled::*; | ||
#[cfg(feature = "profiling")] | ||
pub use profiling_enabled::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#[inline(always)] | ||
pub fn startup_profiler() {} | ||
|
||
#[inline(always)] | ||
pub fn emit_frame_mark() {} | ||
|
||
#[inline(always)] | ||
pub fn tracy_create_gpu_context(_name: &str) {} | ||
|
||
#[inline(always)] | ||
pub fn tracy_gpu_collect() {} | ||
|
||
macro_rules! tracy_zone { | ||
($name: expr, $color: expr) => {}; | ||
($name: expr) => {}; | ||
} | ||
macro_rules! tracy_gpu_zone { | ||
($name: expr, $color: expr) => {}; | ||
($name: expr) => {}; | ||
} | ||
|
||
pub(crate) use tracy_gpu_zone; | ||
pub(crate) use tracy_zone; |
Oops, something went wrong.