engage/generated/unity_engine/profiling/
profiler.rs1#[cfg(feature = "unity_engine-profiling-profiler-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/profiling/profiler/Profiler.md"))]
11 #[::unity::class(namespace = "UnityEngine.Profiling", name = "Profiler")]
12 #[parent(crate::system::object::Object)]
13 pub struct Profiler {}
14}
15
16#[cfg(feature = "unity_engine-profiling-profiler-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-profiling-profiler")]
20impl Profiler {
21 #[doc = "`GetRuntimeMemorySizeLong(crate::unity_engine::object_2::Object_2)` overload"]
22 pub fn get_runtime_memory_size_long(o: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>) -> i64 {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x32f8aa0usize)as*mut u8,i64;
25(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(o))
26 }
27 }
28
29 #[doc = "`GetMonoUsedSizeLong()` overload"]
30 pub fn get_mono_used_size_long() -> i64 {
31 unsafe {
32 ::unity::il2cpp_call!((::unity::module_base()+0x32f8af0usize)as*mut u8,i64;
33 )
34 }
35 }
36}
37
38#[cfg(feature = "unity_engine-profiling-profiler")]
39impl Profiler {
40 pub fn get_runtime_memory_size_long_method_info() -> &'static ::unity::il2cpp::MethodInfo {
41 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
42 }
43
44 pub fn get_mono_used_size_long_method_info() -> &'static ::unity::il2cpp::MethodInfo {
45 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
46 }
47}
48
49#[cfg(feature = "unity_engine-profiling-profiler")]
50#[doc(hidden)]
51pub mod prelude {
52 pub use super::{IProfiler, Profiler};
53 pub use crate::system::object::IObject;
54 #[cfg(feature = "system-object")]
55 pub use crate::system::object::IObjectMethods;
56}