New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DevTools: Add links to components, directives, and lifecycle hooks in the profiler #45887
Comments
Hi, I would like to take this if it is available. |
Awesome, thank you @tiwarirahul I've assigned this issue to you. |
Thanks @AleksanderBodurri !!
|
@tiwarirahul Interesting Found some issues with similar error messages: Not sure the exact approach to diagnose this. Any ideas @devversion? |
Thanks @AleksanderBodurri for the response. After trying so many things, this got fixed and working now. Now, I will be working on the original issue. As of now what I have looked so far, it seems that inspecting on sources works through node's position array and inside our profiler's node, we don't have position array. So I will be working to see, how we could have that information so that while selecting a node on click, we can mimic the behavior as we have on DirectiveExplorer. so is that the correct direction I am moving or do you have any pointers for me on where I should start on this. |
@tiwarirahul I would start by taking a look at
In the case where someone uploads a profile instead of recording it, we can disable this functionality. Let's try to get this working for directive/components first and then we can try a similar approach for lifecycles. Apologies for the late reply |
Description
We display some components in the profiler view (under Parent Hierarchy). Right now they are just a visual indication of the parent hierarchy for each component. Let's convert these into links so that clicking them automatically opens the component definition in the browser's source code inspector.

We can also detect when the "Method" column matches an Angular lifecycle hook (ngDoCheck in the example below) and convert the text into a link that automatically inspects the lifecycle method for the component in the browser source code inspector

Lets mimic the existing inspect functionality for the profiler. You can see examples of inspect in action by clicking the code icon when a component has been selected in the directive explorer (top right)
The text was updated successfully, but these errors were encountered: