dig icon indicating copy to clipboard operation
dig copied to clipboard

dig "trace" mode

Open sywhang opened this issue 3 years ago • 3 comments

Currently, we don't get any visibility into the types injected in the DI container of Dig. i.e. it's not really possible to see which constructors' provided types are the "most used" and where the "hot path"s are. Note that what I mean by "hot path" here isn't code that's executed frequently - each constructor in Dig is invoked precisely once. The "hot path" here is the constructor where the most of the graph depends on.

Also this may be useful for identifying types that are provided but aren't really used anywhere, which may help users identify some dead code, or break down constructors that aren't used frequently, etc.

sywhang avatar Jul 27 '22 00:07 sywhang

what's difference of "trace" mod and Visualize function which can generates a DOT file used for graphviz

byene0923 avatar Apr 12 '23 09:04 byene0923

i think the result of Visualize function now is not elegant and clear, i think it could be designed as you mentioned

byene0923 avatar Apr 12 '23 09:04 byene0923