Skip to contentSkip to conversation

doc: guidelines for library statistics

PATCH Morten Brørup 2 participants 2 messages Jun 18, 2015

lore
Share & tools
lore
#0 lore raw

The suggested solution with only one single flag per library prevents implementing statistics with varying granularity for different purposes. E.g. a library could have one set of statistics counters for ordinary SNMP purposes, and another set of statistics counters for debugging/optimization purposes.

Multiple flags per library should be possible. A hierarchy of flags per library is probably not required.

And since the compile time flag CONFIG_RTE_<LIBRARY_NAME>[_<STATS_COLLECTION_NAME>]_STATS_COLLECT already tells the application if the statistics are present or not, the application should simply use this flag to determine if statistics are accessible or not.

Med venlig hilsen / kind regards

Morten Brørup

CTO

SmartShare Systems A/S

Tonsbakken 16-18

DK-2740 Skovlunde

Denmark

Office +45 70 20 00 93

Direct +45 89 93 50 22

Mobile +45 25 40 82 12

[email protected] <mailto:[email protected]>

www.smartsharesystems.com <http://www.smartsharesystems.com/>

#1 lore raw

We need a conclusion here.

It seems the policy proposed by Cristian is the best consensus. If nobody nack in this thread with a counter-proposal, it will be adopted on Monday.

2015-06-18 16:38, Morten Brørup:

Quoted 5 lines

The suggested solution with only one single flag per library prevents implementing statistics with varying granularity for different purposes. E.g. a library could have one set of statistics counters for ordinary SNMP purposes, and another set of statistics counters for debugging/optimization purposes.

It would be difficult to sort a statistic in a category or another. By the way, it's often better to add its own stats for debugging/optim.

Quoted 7 lines

Multiple flags per library should be possible. A hierarchy of flags per library is probably not required.

And since the compile time flag CONFIG_RTE_<LIBRARY_NAME>[_<STATS_COLLECTION_NAME>]_STATS_COLLECT already tells the application if the statistics are present or not, the application should simply use this flag to determine if statistics are accessible or not.

Yes