capture and store individual timings as time series
Note: work-in-progress... TODO: derive the expense factor and delta
This commit is contained in:
parent
7639ac4172
commit
75767a3a97
4 changed files with 119 additions and 1 deletions
|
|
@ -49,7 +49,7 @@
|
||||||
** Column<double> x{"X value"};
|
** Column<double> x{"X value"};
|
||||||
** Column<double> y{"Y value"};
|
** Column<double> y{"Y value"};
|
||||||
**
|
**
|
||||||
** auto allColumns(){ return std::tie(name,count,x,y); }
|
** auto allColumns(){ return std::tie(name,n,x,y); }
|
||||||
** };
|
** };
|
||||||
**
|
**
|
||||||
** using Dataz = util::DataFile<Storage>;
|
** using Dataz = util::DataFile<Storage>;
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,11 @@ inline bool parseAs(string const& encodedBool)
|
||||||
{
|
{
|
||||||
return util::boolVal(encodedBool);
|
return util::boolVal(encodedBool);
|
||||||
}
|
}
|
||||||
|
template<>
|
||||||
|
inline string parseAs(string const& string)
|
||||||
|
{
|
||||||
|
return string; // pass-through (even if empty)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
57
yoshimi-testrunner/src/util/statistic.cpp
Normal file
57
yoshimi-testrunner/src/util/statistic.cpp
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
/*
|
||||||
|
* statistic - helpers for generic statistics calculations
|
||||||
|
*
|
||||||
|
* Copyright 2021, Hermann Vosseler <Ichthyostega@web.de>
|
||||||
|
*
|
||||||
|
* This file is part of the Yoshimi-Testsuite, which is free software:
|
||||||
|
* you can redistribute and/or modify it under the terms of the GNU
|
||||||
|
* General Public License as published by the Free Software Foundation,
|
||||||
|
* either version 3 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Yoshimi-Testsuite is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with yoshimi. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
***************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
/** @file statistic.cpp
|
||||||
|
** Implementation details for generic statistics calculations.
|
||||||
|
**
|
||||||
|
** @todo WIP as of 9/21
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "util/statistic.hpp"
|
||||||
|
//#include "util/format.hpp"
|
||||||
|
#include "util/error.hpp"
|
||||||
|
|
||||||
|
//#include <algorithm>
|
||||||
|
//#include <cassert>
|
||||||
|
//#include <cmath>
|
||||||
|
|
||||||
|
|
||||||
|
namespace util {
|
||||||
|
|
||||||
|
//using util::formatVal;
|
||||||
|
//using std::log10;
|
||||||
|
//using std::fabs;
|
||||||
|
//using std::max;
|
||||||
|
//using std::min;
|
||||||
|
|
||||||
|
|
||||||
|
namespace { // Implementation details
|
||||||
|
}//(End)Implementation namespace
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
}//(End)namespace util
|
||||||
56
yoshimi-testrunner/src/util/statistic.hpp
Normal file
56
yoshimi-testrunner/src/util/statistic.hpp
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
/*
|
||||||
|
* statistic - helpers for generic statistics calculations
|
||||||
|
*
|
||||||
|
* Copyright 2021, Hermann Vosseler <Ichthyostega@web.de>
|
||||||
|
*
|
||||||
|
* This file is part of the Yoshimi-Testsuite, which is free software:
|
||||||
|
* you can redistribute and/or modify it under the terms of the GNU
|
||||||
|
* General Public License as published by the Free Software Foundation,
|
||||||
|
* either version 3 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Yoshimi-Testsuite is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with yoshimi. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
***************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
/** @file statistic.cpp
|
||||||
|
** Support for generic statistics calculations.
|
||||||
|
**
|
||||||
|
** @todo WIP as of 9/21
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef TESTRUNNER_UTIL_STATISTIC_HPP_
|
||||||
|
#define TESTRUNNER_UTIL_STATISTIC_HPP_
|
||||||
|
|
||||||
|
|
||||||
|
#include "util/error.hpp"
|
||||||
|
|
||||||
|
//#include <algorithm>
|
||||||
|
//#include <cassert>
|
||||||
|
#include <vector>
|
||||||
|
//#include <cmath>
|
||||||
|
|
||||||
|
namespace util {
|
||||||
|
|
||||||
|
//using util::formatVal;
|
||||||
|
//using std::log10;
|
||||||
|
//using std::fabs;
|
||||||
|
//using std::max;
|
||||||
|
//using std::min;
|
||||||
|
|
||||||
|
using VecD = std::vector<double>;
|
||||||
|
|
||||||
|
namespace { // Implementation details
|
||||||
|
}//(End)Implementation namespace
|
||||||
|
|
||||||
|
|
||||||
|
}//(End)namespace util
|
||||||
|
#endif /*TESTRUNNER_UTIL_STATISTIC_HPP_*/
|
||||||
Loading…
Reference in a new issue