azure-sdk-for-cpp icon indicating copy to clipboard operation
azure-sdk-for-cpp copied to clipboard

Add size baselines and gates to prevent growth

Open RickWinter opened this issue 4 years ago • 3 comments

Size and speed are very important to C++ developers.

  • [ ] Add infrastructure to track sdk size on per package level
  • [ ] Add gates to catch package size growth

RickWinter avatar May 05 '21 16:05 RickWinter

When measuring the binary size with map files in C we had to create programs which use parts of the SDK. Parsing map files (whose formats differ between compilers) is domain-specific and should be owned by the language team.

Do we want to measure the size of the produced static library file or do we want to measure the size of the library when incorporated into a program?

danieljurek avatar Aug 23 '21 17:08 danieljurek

We have some infrastructure to support reporting and tracking metrics now. I'll dive in and figure out how to get it working.

danieljurek avatar Dec 13 '21 19:12 danieljurek

To log a metric output a line in the console:

logmetric: <json-object>

json-object should be of the form

{ 
  "name": "<string>",
  "value": <number>,
  "time": "<string representation of metric emission time>"
  "labels": { <dictionary> }
}

danieljurek avatar Dec 16 '21 15:12 danieljurek

Hi @RickWinter, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.

github-actions[bot] avatar Mar 27 '24 18:03 github-actions[bot]