예제 #1
0
파일: main.cpp 프로젝트: GOPRO1955/kodo
    void store_run(tables::table& results)
    {
        if (!results.has_column("throughput"))
            results.add_column("throughput");

        results.set_value("throughput", measurement());
    }
예제 #2
0
파일: main.cpp 프로젝트: GOPRO1955/kodo
    void store_run(tables::table& results)
    {
        if(!results.has_column("dest[i] = dest[i] + src[i]"))
            results.add_column("dest[i] = dest[i] + src[i]");

        results.set_value("dest[i] = dest[i] + src[i]", m_counter.m_add);

        if(!results.has_column("dest[i] = dest[i] - src[i]"))
            results.add_column("dest[i] = dest[i] - src[i]");

        results.set_value("dest[i] = dest[i] - src[i]", m_counter.m_subtract);

        if(!results.has_column("dest[i] = dest[i] * constant"))
            results.add_column("dest[i] = dest[i] * constant");

        results.set_value("dest[i] = dest[i] * constant", m_counter.m_multiply);

        if(!results.has_column("dest[i] = dest[i] + (constant * src[i])"))
            results.add_column("dest[i] = dest[i] + (constant * src[i])");

        results.set_value("dest[i] = dest[i] + (constant * src[i])",
            m_counter.m_multiply_add);

        if(!results.has_column("dest[i] = dest[i] - (constant * src[i])"))
            results.add_column("dest[i] = dest[i] - (constant * src[i])");

        results.set_value("dest[i] = dest[i] - (constant * src[i])",
            m_counter.m_multiply_subtract);

        if(!results.has_column("invert(value)"))
            results.add_column("invert(value)");

        results.set_value("invert(value)", m_counter.m_invert);
    }
    void store_run(tables::table& results)
    {
        for(auto& c : m_counter)
        {
            if(!results.has_column(c.first))
            {
                results.add_column(c.first);
                results.set_default_value(c.first, uint32_t(0));
            }

            results.set_value(c.first,c.second);
        }
    }
예제 #4
0
    void store_run(tables::table& results)
    {
        if (!results.has_column("goodput"))
            results.add_column("goodput");

        results.set_value("goodput", measurement());

        if (std::is_same<Feature, relaxed>::value)
        {
            gauge::config_set cs = get_current_configuration();
            std::string type = cs.get_value<std::string>("type");

            if (type == "decoder")
            {
                if (!results.has_column("extra_symbols"))
                    results.add_column("extra_symbols");

                uint32_t erased_symbols =
                    cs.get_value<uint32_t>("erased_symbols");
                uint32_t extra_symbols = m_processed_symbols - erased_symbols;
                results.set_value("extra_symbols", extra_symbols);
            }
        }
    }