Go to the documentation of this file.
29 #include "pybind11/pybind11.h"
43 namespace py = pybind11;
47 "import m5.stattestmain",
48 "m5.stattestmain.main()",
53 using namespace Stats;
139 .desc(
"this is statistic 1")
144 .desc(
"this is statistic 2")
150 .desc(
"this is statistic 3")
156 .desc(
"this is statistic 4")
163 .desc(
"this is statistic 5")
175 .desc(
"this is statistic 6")
182 .desc(
"this is statistic 7")
191 .desc(
"this is statistic 8")
199 .desc(
"this is statistic 9")
206 .desc(
"this is statistic 10")
213 .desc(
"this is statistic 12")
219 .desc(
"this is statistic 13")
225 .desc(
"this is statistic 14")
231 .desc(
"this is statistic 15")
237 .desc(
"this is statistic 16")
248 .desc(
"this is stat 17")
255 .desc(
"this is stat 18")
259 .functor([]() {
return 0; })
261 .desc(
"this is stat 19")
267 .desc(
"this is histogram 1")
273 .desc(
"this is histogram 2")
279 .desc(
"this is histogram 3")
285 .desc(
"this is histogram 4")
291 .desc(
"this is histogram 5")
297 .desc(
"this is histogram 6")
303 .desc(
"this is histogram 7")
309 .desc(
"this is histogram 8")
315 .desc(
"this is histogram 9")
321 .desc(
"this is histogram 10")
327 .desc(
"this is histogram 11")
333 .desc(
"this is histogram 12")
338 .name(
"SparseHistogram1")
339 .desc(
"this is sparse histogram 1")
344 .desc(
"this is formula 1")
350 .desc(
"this is formula 2")
357 .desc(
"this is formula 3")
368 .desc(
"this is formula 4")
374 .desc(
"this is statistic 20 for vector op testing")
380 .desc(
"this is statistic 21 for vector op testing")
385 .name(
"vector_op_test_formula")
386 .desc(
"The total stat should equal 1")
391 f2 = (-s1) / (-s2) * (-s3 +
ULL(100) + s4);
427 s10.sample(1000000000);
639 for (
int i = 0;
i < 100;
i++) {
644 for (
int i = -100;
i < 100;
i++) {
649 for (
int i = -100;
i < 1000;
i++) {
654 for (
int i = 100;
i >= -1000;
i--) {
659 for (
int i = 0;
i <= 1023;
i++) {
664 for (
int i = -1024;
i <= 1023;
i++) {
669 for (
int i = 0;
i < 1000;
i++) {
683 py::module
m = m_internal.def_submodule(
"stattest");
const FlagsType init
This Stat is Initialized.
EventQueue * getEventQueue(uint32_t index)
Function for returning eventq queue for the provided index.
VectorAverageDeviation s15
static EmbeddedPyBind embed_("stattest", stattest_init_pybind)
Calculates the per tick mean and variance of the samples.
const char * m5MainCommands[]
A vector of scalar stats.
This is a vector of AverageDeviation stats.
A vector of distributions.
static void stattest_init_pybind(py::module &m_internal)
This is a simple scalar statistic, like a counter.
void cprintf(const char *format, const Args &...args)
VectorStandardDeviation s14
EventQueue * curEventQueue()
Calculates the mean and variance of all the samples.
void setCurTick(Tick newVal)
A simple distribution stat.
const std::string & name()
const FlagsType nozero
Don't print if this is zero.
A stat that calculates the per tick average of a value.
A 2-Dimensional vecto of scalar stats.
Overload hash function for BasicBlockRange type.
const FlagsType pdf
Print the percent of the total that this entry represents.
A vector of Average stats.
Queue of events sorted in time order.
const FlagsType total
Print the total.
This is a vector of StandardDeviation stats.
#define ULL(N)
uint64_t constant
const FlagsType nonan
Don't print if this is NAN.
Tick curTick()
The current simulated tick.
Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17