It's not easy to get the names of functions that has namespaces / class names that are taking a lot of character space (e.g. due to generic parameters) #4944
Labels
call tree
Related to the call tree panel
flame graph
Related to the flame graph panel
polish
Small features or changes that do not require planning to work on. These help out our end users.
stack chart
Issues related to the stack chart panel
example: https://profiler.firefox.com/public/2472k1k8y08jzryrcj1f60jsntaae0br7dax5ag/flame-graph/?globalTrackOrder=0w3&thread=3&v=10
function name:
style::invalidation::element::invalidator::TreeStyleInvalidator::invalidate_child
function name with all types:
style::invalidation::element::invalidator::TreeStyleInvalidator<style::gecko::wrapper::GeckoElement,style::invalidation::element::relative_selector::RelativeSelectorOuterInvalidationProcessor<style::gecko::wrapper::GeckoElement> >::invalidate_child<style::gecko::wrapper::GeckoElement,style::invalidation::element::relative_selector::RelativeSelectorOuterInvalidationProcessor<style::gecko::wrapper::GeckoElement> >(style::gecko::wrapper::GeckoElement, ref$<slice2$<style::invalidation::element::invalidator::Invalidation> >, smallvec::SmallVec<array$<style::invalidation::element::invalidator::Invalidation,10> >*, style::invalidation::element::invalidator::DescendantInvalidationKind) [servo/components/style/invalidation/element/invalidator.rs]
The only way I found to get the name for this function was to copy the function name from the context menu, and paste it elsewhere.
The problem is everywhere: call tree, flame graph, stack chart, tooltip.. but not the sidebar. Maybe a quick win would be to display just the function name in the tooltip. Possibly the opposite is better: display just the function name in the flame graph and stack chart, but the full name (non ellipsis-ed) in the tooltip.
Other ideas:
We should probably reduce the length of some generics. Ideas: remove the module name, replace the generics by
...
after some depth. What are other tools doing?┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: