---
title: 本机内本机内存配器示例
product: Unity Editor
version: '6000.0'
latest_version: '7000.0'
status: This page documents version 6000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/zh-cn/engine/6000.0/manual/analysis/performance-memory/native-memory/allocator-examples
latest_url: https://docs.unity.com/zh-cn/engine/7000.0/manual/analysis/performance-memory/native-memory/allocator-examples.md
last_updated: 2026-11-12
generated_at: 2026-11-16T12:59:35.190Z
locale: zh-cn
---

# 本机内本机内存配器示例

> 请参阅以下本机本机内存分配器示例以了解常见问题。

每种本机内存配器类型都有自己不同的用法和行为。本节包含每种[本机内存分配器类型](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocators.md)的示例和使用日志。

| **主题**                                                                                                                                   | **描述**                        |
| ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| **[双线程分配器示例](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocator-examples/dual-thread-allocator.md)**              | 检查双线程程分配器的使用情况Reports。        |
| **[动态堆分配器示例](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocator-examples/dynamic-heap-allocator.md)**             | 检查动态堆分配器的 usage Reports。      |
| **[存储桶分配器示例](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocator-examples/bucket-allocator.md)**                   | 检查存储桶分配器的 usage Reports。      |
| **[线程本地存储堆栈分配器示例](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocator-examples/tls-stack-allocator.md)**           | 检查 TLS 堆栈分配器分配器的使用情况 Reports。 |
| **[线程 Safe 线性分配器示例](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocator-examples/threadsafe-linear-allocator.md)** | 检查线程 Safe 线性分配器的使用情况 Reports。 |

## 其他资源##additional-resources

* [本机内存分配器](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocators.md)
* [自定义本机内存分配器](/engine/6000.0/manual/analysis/performance-memory/native-memory/memory-allocator-customization.md)
* [本机内存分配器参考](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocator-reference.md)
