il2cpp-runtime-stats.h 810 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <atomic>
  3. #include <stdint.h>
  4. struct Il2CppRuntimeStats
  5. {
  6. std::atomic<uint64_t> new_object_count;
  7. std::atomic<uint64_t> initialized_class_count;
  8. // uint64_t generic_vtable_count;
  9. // uint64_t used_class_count;
  10. std::atomic<uint64_t> method_count;
  11. // uint64_t class_vtable_size;
  12. std::atomic<uint64_t> class_static_data_size;
  13. std::atomic<uint64_t> generic_instance_count;
  14. std::atomic<uint64_t> generic_class_count;
  15. std::atomic<uint64_t> inflated_method_count;
  16. std::atomic<uint64_t> inflated_type_count;
  17. // uint64_t delegate_creations;
  18. // uint64_t minor_gc_count;
  19. // uint64_t major_gc_count;
  20. // uint64_t minor_gc_time_usecs;
  21. // uint64_t major_gc_time_usecs;
  22. bool enabled;
  23. };
  24. extern Il2CppRuntimeStats il2cpp_runtime_stats;