Coder Social home page Coder Social logo

Comments (3)

DigitalInBlue avatar DigitalInBlue commented on July 18, 2024

Good idea. I can take a look!

from celero.

ryansynk avatar ryansynk commented on July 18, 2024

Great, thank you

from celero.

DigitalInBlue avatar DigitalInBlue commented on July 18, 2024

Apologies for the delay. Looking at the code, I think UserDefinedMeasurementTemplate is just a convenience class. You can use any type you want if you inherit from UserDefinedMeasurement instead. It has a few pure virtual functions you have to implement, but it would be trivial for std::string to implement.

///
/// \brief Must be implemented by the user. Must return a specification which aggregations the user wants to be computed.
///
virtual UDMAggregationTable getAggregationInfo() const = 0;

///
/// \brief Must be implemented by the user. Must return the name of this user-defined measurement.
///
virtual std::string getName() const = 0;

///
/// \brief Combine the results of two user-defined measurements.
///
/// As TestFixture classes are created and destroyed, this provides a mechanism to preserve data.  Internally, this function is used so that
/// each unique set of (group, experiment, problem space) has its own combined set of user defined measurements.
///
virtual void merge(const UserDefinedMeasurement* const x) = 0;

For your use case, getAggregationInfo() would just return an empty UDMAggregationTable. and merge would not have to do anything at all. So you would just have to return a name. Give that a try and let me know if you have success.

from celero.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.