# ScriptProfilerService(ロブロックス クラス) > A service that captures sampling-based profiles of Luau script execution on the server or on a client. - URL:https://roblox.minecraft-okinawa.com/reference/classes/ScriptProfilerService/ - 公式:https://create.roblox.com/docs/reference/engine/classes/ScriptProfilerService - 受け継いでいるクラス:Instance ## メソッド - `ScriptProfilerService:ClientRequestData(player: Player): ()`:Requests the current script profiling data from the specified player's client. - `ScriptProfilerService:ClientStart(player: Player, frequency: int?): ()`:Begins Luau script profiling for the specified player's client. - `ScriptProfilerService:ClientStop(player: Player): ()`:Stops Luau script profiling for the specified player's client. - `ScriptProfilerService:DeserializeJSON(jsonString: string?): Dictionary`:Parses a script-profiling JSON string into a structured Luau table. - `ScriptProfilerService:ServerRequestData(): ()`:Requests the current script profiling data from the server. - `ScriptProfilerService:ServerStart(frequency: int?): ()`:Begins Luau script profiling on the server. - `ScriptProfilerService:ServerStop(): ()`:Stops Luau script profiling on the server. ## イベント - `ScriptProfilerService.OnNewData(player: Player, jsonString: string)`:Fires when a new profiling data snapshot becomes available after a data request. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)