When debugging on Chrome Developer Tools you can set a .js (.ts, ...) file as blackbox. Debug will not step into a blackbox file.
This is very nice. But I want/need more. When using Performance tab and recording some actions, chrome collect all events and codes runned (regardless of blackboxing).
Is there a way to filter a record or record respecting blackbox? (Or something with the same effect).
Yes, there is a way to filter the performance recording based on blackbox settings.
When you start a performance recording, Chrome will collect all events and code that are executed, regardless of the blackbox settings. However, you can use the "Filter" feature in the DevTools Performance tab to only show events from specific files.
To do this, you can use the filter dropdown menu at the top of the performance panel, and select "Hide blackboxed scripts." This will exclude any events that are associated with blackboxed scripts and only show events for non-blackboxed scripts.
Alternatively, you can also use the "Noise Reduction" feature to exclude specific scripts or domains that you don't want to include in your performance analysis. The "Noise Reduction" feature is accessible from the "Settings" panel in the Performance tab, and allows you to specify scripts or domains to exclude from the performance data.
These features can help you focus on the performance data that is most relevant to your investigation and make it easier to identify performance bottlenecks in your code.