Profiling JavaScript exposes the bulk of your code’s execution time. Use the Records pane to find bottlenecks in your scripts and inefficiency in your CSS selectors to optimize their performance. This pane allows you to see where execution time is being spent in your JavaScript and CSS.
![react native network inspector react native network inspector](https://i.stack.imgur.com/r3VRT.png)
Underneath the Timelines pane in the Timelines navigation sidebar is the Records pane. Figure 3-3 JavaScript events in the Timelines navigation sidebar Timing Records Evaluated scripts, dispatched events, animation frames, and timers are listed in the table in the content browser, as shown in Figure 3-3. JavaScript executed during a recording session is represented as a purple horizontal bar in the timeline. Figure 3-2 Layout and rendering events in the Timelines navigation sidebar JavaScript and Events Each layout calculation and paint rendering is represented by a purple horizontal bar. Click on Layout & Rendering in the Timelines pane to display a table of each paint that has been rendered, as shown in Figure 3-2. Just as you can see great detail about every resource that has loaded, you can see great detail about how Safari's rendering engine, WebKit, renders the page. The red line indicates when all resources have finished loading, and is equivalent to the load JavaScript event. The vertical dashed blue line indicates when the DOM becomes available to Safari, and is equivalent to the DOMContentLoaded JavaScript event. Hover over any bar to see additional details in a tooltip.
React native network inspector download#
The horizontal bar graph shows you when each resource was requested, the latency of the server, and the download time for each resource. When the Network Requests timeline is selected, the bottom portion of the content browser displays each individual file requested from the webpage.
![react native network inspector react native network inspector](https://fbflipper.com/img/databases-plugin-2.png)
Figure 3-1 Network requests in the Timelines navigation sidebar Network Requestsįigure 3-1 shows recorded network requests as blue horizontal bars. The content browser shows various details depending on the selected timeline. To stop recording, click the Stop Recording button. This shows all activity as it happens during page load. Reloading the webpage while Web Inspector is open. While recording, you can interact with the page to trigger XHR loads, style recalculation, page layout and painting, and JavaScript events. This shows all activity that happens since the record button is clicked.
![react native network inspector react native network inspector](https://mitchgavan.com/images/posts/react-native-for-feds/debugging.jpg)
You can start recording timelines two ways:Ĭlicking the Start Recording button. Timelines show network requests, CSS rendering, and JavaScript events.Īll timelines record simultaneously. Timelines are a graphical representation of activity that occurs during the lifetime of the open page. Web Inspector features a visual download analyzer and JavaScript and events recording to help you make your website load and your scripts run as quickly and responsively as possible. For new documentation on Safari Web Inspector, please visit Safari Developer Help. Links to downloads and other resources may no longer be valid. This document no longer represents the most current version of Safari developer tools.