[null,null,["最后更新时间 (UTC):2024-09-03。"],[[["Perfetto can be used to analyze the performance of Protected Audience auctions, including bidding and scoring script CPU time, latency of HTTP requests, and the impact of various factors like cache and custom audiences."],["To analyze auctions with Perfetto, developers need to set up a test environment, record a trace during an auction using the provided trace configuration file, and then open the trace in the Perfetto UI."],["The Perfetto UI allows visual exploration of traces, highlighting details like execution latency for different auction stages, such as bidding, scoring, and ad selection."],["Specific trace segments within Perfetto provide insights into various aspects of the auction process, such as filtering contextual ads, loading buyer and seller signals, running bidding and scoring logic, and persisting auction results."],["Perfetto also supports SQL queries for precise measurements, allowing developers to calculate metrics like average execution latency for specific operations, like fetching JavaScript payloads."]]],["Profiling Protected Audience auctions with Perfetto allows ad techs to measure bidding/scoring script CPU time, HTTP request latency, and the impact of cache, audience size, and signal sets. To analyze, clone Perfetto and Privacy Sandbox repos, and build the sample app. Run an auction on a test device via adb, initiating a Perfetto trace with `trace_config.textproto`. The trace data is visually explorable or can be queried using SQL to determine latency of segments. Key trace segments include bidding, scoring, and auction processes.\n"]]