Refactor LLDB's current statistics into a single class named Analytics which consists of different metrics.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
please don't commit this. I am in the process of doing very similar stuff in https://reviews.llvm.org/D110804
Comment Actions
I will have the new version that implements many of these changes submitted by tonight
Comment Actions
Some general thoughts:
- instead of throwing patches around in might be good to have a discussion thread to determine all the requirements and figure out the general direction
- it would be better to have a series of smaller patches (like this one) instead one big patch implementing everything
lldb/include/lldb/Utility/Analytics.h | ||
---|---|---|
43 | This assumes all statistics can be represented as integers. Here's an idea how that could be done with a flexible type representation https://godbolt.org/z/j6f3bhP8P. | |
lldb/source/Utility/Analytics.cpp | ||
40–41 | You could get rid of these if you made MaxID a synonym for the highest valued entry. |
Comment Actions
Got to agree with Pavel here :-)
[Sorry, I missed the context in https://reviews.llvm.org/D110804, I should read through my reviews in chronological order.]
This assumes all statistics can be represented as integers. Here's an idea how that could be done with a flexible type representation https://godbolt.org/z/j6f3bhP8P.