Skip to content
Snippets Groups Projects
Commit a09a52f5 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

add measure types

parent ef0f7a0d
No related branches found
No related tags found
No related merge requests found
...@@ -26,9 +26,14 @@ std::string to_string ( Type t ) { ...@@ -26,9 +26,14 @@ std::string to_string ( Type t ) {
case Type::AUXILIARY: case Type::AUXILIARY:
return "AUXILIARY"; return "AUXILIARY";
   
default: case Type::PREPROCESS:
throw::exception::CommonException ( "Missing case."); return "PREPROCESS";
case Type::ALGORITHM:
return "ALGORITHM";
} }
throw::exception::CommonException ( "Missing case." );
} }
   
Type measurementTypeFromString ( const std::string & ts ) { Type measurementTypeFromString ( const std::string & ts ) {
...@@ -44,6 +49,10 @@ Type measurementTypeFromString ( const std::string & ts ) { ...@@ -44,6 +49,10 @@ Type measurementTypeFromString ( const std::string & ts ) {
   
if ( ts == "AUXILIARY" ) return Type::AUXILIARY; if ( ts == "AUXILIARY" ) return Type::AUXILIARY;
   
if ( ts == "PREPROCESS" ) return Type::PREPROCESS;
if ( ts == "ALGORITHM" ) return Type::ALGORITHM;
throw::exception::CommonException ( "measurementTypeFromString failed, unknown measurement type: " + ts ); throw::exception::CommonException ( "measurementTypeFromString failed, unknown measurement type: " + ts );
} }
   
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
namespace measurements { namespace measurements {
   
enum class Type : unsigned { enum class Type : unsigned {
ROOT = 1, OVERALL = 2, INIT = 4, FINALIZE = 8, MAIN = 16, AUXILIARY = 32 ROOT = 1, OVERALL = 2, INIT = 4, FINALIZE = 8, MAIN = 16, AUXILIARY = 32, PREPROCESS = 64, ALGORITHM = 128
}; };
   
std::string to_string ( Type ); std::string to_string ( Type );
......
...@@ -186,10 +186,9 @@ std::string MeasurementProcessorOutput::getData ( const MeasurementFrame & frame ...@@ -186,10 +186,9 @@ std::string MeasurementProcessorOutput::getData ( const MeasurementFrame & frame
   
case OutputEngine::COUNTER: case OutputEngine::COUNTER:
return MeasurementProcessorViews::viewCounterDataFrame ( frame, mpo.outputEngineAttr ); return MeasurementProcessorViews::viewCounterDataFrame ( frame, mpo.outputEngineAttr );
default:
throw::exception::CommonException ( "Missing case.");
} }
throw::exception::CommonException ( "Missing case." );
} }
   
} }
<?xml version="1.0"?>
<MeasurementProvisioner>
<Environment>
<PipelineIterations>10</PipelineIterations>
</Environment>
<InputData>
<InputBatch>
<Generator id="1" alias="str 65536:2">./arand2 -t ST --length 16384 --terminals 2</Generator>
<Generator id="2" alias="pat 2">./arand2 -t SST --length 2 -i $1</Generator>
<Generator id="2" alias="pat 4">./arand2 -t SST --length 4 -i $1</Generator>
<Generator id="2" alias="pat 8">./arand2 -t SST --length 8 -i $1</Generator>
<Generator id="2" alias="pat 16">./arand2 -t SST --length 16 -i $1</Generator>
<Generator id="2" alias="pat 32">./arand2 -t SST --length 32 -i $1</Generator>
<Generator id="2" alias="pat 64">./arand2 -t SST --length 64 -i $1</Generator>
<Generator id="2" alias="pat 128">./arand2 -t SST --length 128 -i $1</Generator>
<Generator id="2" alias="pat 256">./arand2 -t SST --length 256 -i $1</Generator>
<Generator id="2" alias="pat 512">./arand2 -t SST --length 512 -i $1</Generator>
<Generator id="2" alias="pat 1024">./arand2 -t SST --length 1024 -i $1</Generator>
<Generator id="2" alias="pat 2048">./arand2 -t SST --length 2048 -i $1</Generator>
</InputBatch>
</InputData>
<Pipelines>
<Pipeline>
<Command alias="bmh">./astringology2 -a boyerMooreHorspool -s $1 -p $2</Command>
</Pipeline>
</Pipelines>
</MeasurementProvisioner>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment