Skip to main content

heap_bindings/
heap_bindings.rs

1// Copyright 2026 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// This file is automatically generated by //zircon/kernel/lib/heap:_kernel_bindgen_crate.heap-bindings.bindgen.
6
7#![no_std]
8
9pub const HEAP_COLLECT_STATS: u32 = 0;
10unsafe extern "C" {
11    pub fn cpp_get_heap_profile(ptr: *mut *const ::core::ffi::c_void, size: *mut usize);
12}
13unsafe extern "C" {
14    pub fn cpp_profile_track_alloc(size: usize) -> u32;
15}
16unsafe extern "C" {
17    pub fn cpp_profile_track_free(handle: u32, size: usize);
18}
19unsafe extern "C" {
20    pub fn cpp_heap_dump_stats();
21}