Hello,
I was sent your way after my
CL crrev.com/c/6625582 to ask a question about a proposed small bit of refactoring I'd like to do.
Context
I work on Performance Tooling in DevTools and we consume trace events from a Chrome trace to build UIs like the DevTools Performance Panel.
Recently, I've been adding `nodeName` fields to a number of these trace events and populating it with the value of Node::DebugName() [
source].
> (Also, "DebugName()" isn't stable and not meant to be used for anything but debugging. I'm assuming it's not used for anything that would make it hard to change the DebugName of something later, yes?)
Proposal / question
Longer term I would like to start work on presenting these node names in our UI in a more structured, formatted way for our users, so the exact format of what DebugName() currently returns is going to become important for us; at this point I think we are moving away from the use that DebugName() was initially designed for.
Is there any strong opinions on implementing an alternative to DebugName() called something like NodeNameForTrace() (or similar) which can be a version that is sensitive to changes, leaving DebugName() open for just its original intentions?
Thanks,
Jack.