# HeapProfilerService(ロブロックス クラス) > Generates and retrieves Luau heap memory profiles from the client and server Luau virtual machines for memory debugging. - URL:https://roblox.minecraft-okinawa.com/reference/classes/HeapProfilerService/ - 公式:https://create.roblox.com/docs/reference/engine/classes/HeapProfilerService - 受け継いでいるクラス:Instance ## メソッド - `HeapProfilerService:ClientRequestDataAsync(player: Player): string`:Yields until the Luau heap profile of the specified player's client is available, then returns it as a JSON string. - `HeapProfilerService:ServerRequestDataAsync(): string`:Yields until the server's Luau heap profile is available, then returns it as a JSON string. ## イベント - `HeapProfilerService.OnNewData(player: Player, jsonString: buffer, id: int, compressedLength: int, uncompressedLength: int)`:Fires on the requesting machine with the compressed Luau heap profile produced for an earlier request. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)