webtool_performance_trace
Analyzes webpage performance including layout thrashing, JavaScript execution, memory growth, and resource loading. Provides actionable optimization recommendations.
Instructions
Perform a detailed performance analysis with specialized modules for layout thrashing, CSS variables impact, JavaScript execution timeline, long tasks breakdown, memory and DOM growth analysis, and resource loading optimization. Provides actionable recommendations for performance improvements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the webpage to analyze | |
| timeoutMs | No | Timeout in milliseconds for the analysis | |
| captureCPUProfile | No | Whether to capture CPU profile to identify JavaScript bottlenecks | |
| captureNetworkActivity | No | Whether to capture detailed network requests and timing | |
| captureJSProfile | No | Whether to capture JavaScript execution profile | |
| captureRenderingPerformance | No | Whether to capture rendering performance metrics (layout shifts, layer tree) | |
| captureMemoryProfile | No | Whether to capture memory usage profile | |
| useProxy | No | Whether to use a proxy for this request | |
| ignoreSSLErrors | No | Whether to ignore SSL certificate errors (use with caution) | |
| analyzeLayoutThrashing | No | Whether to analyze layout thrashing patterns | |
| analyzeCssVariables | No | Whether to analyze CSS variables impact | |
| analyzeJsExecution | No | Whether to analyze JavaScript execution and its correlation with layout events | |
| analyzeLongTasks | No | Whether to analyze long tasks and their attribution | |
| analyzeMemoryAndDom | No | Whether to analyze memory usage and DOM growth | |
| analyzeResourceLoading | No | Whether to analyze resource loading waterfall | |
| longTaskThresholdMs | No | Threshold in milliseconds for long tasks detection | |
| layoutThrashingThreshold | No | Threshold for layout thrashing detection (number of layout operations) | |
| memoryLeakThresholdKb | No | Threshold in KB/s for memory leak detection | |
| detailLevel | No | Level of detail in the analysis output | detailed |
| includeRecommendations | No | Whether to include optimization recommendations in the output | |
| focusSelector | No | CSS selector to focus the analysis on specific DOM elements | |
| focusTimeRangeMs | No | Time range in milliseconds to focus the analysis (format: 'start-end', e.g., '0-5000') | |
| deviceConfig | No | Device configuration for emulation |