#include <CTestProfiler.h>
Public Types | |
| enum | EAnalyzerSectionId |
| Ids of test specification sections. | |
| enum | EAreaType { DATA_AREA , CODE_AREA } |
| Profiler areas. More... | |
| enum | ERunMode { M_OFF , M_START , M_RESUME } |
| Trace modes. More... | |
Public Member Functions | |
| isys::CTestProfilerStatisticsSPtr | addArea (EAreaType areaType) |
| Adds empty area to the end of the list. | |
| void | assignCodeAreas (isys::CTestProfilerSPtr &src) |
| This method copies code areas from src to this object. | |
| void | assignDataAreas (isys::CTestProfilerSPtr &src) |
| This method copies code areas from src to this object. | |
| CTestBaseSPtr | createInstance (const CTestBaseSPtr &parent) const |
| Creates a new empty instance of this class. | |
| CTestProfiler () | |
| Initializes new instance. | |
| CTestProfiler (const CTestBaseSPtr &parent) | |
| Initializes new instance. | |
| int | findArea (const std::string &areaName, int64_t areaValue) |
| Returns index of the data area, or -1 if the area is not found. | |
| int | findArea (EAreaType areaType, const std::string &areaName) |
| Returns index of the area or -1 if the area is not found. | |
| isys::CTestProfilerStatisticsSPtr | getArea (EAreaType areaType, int idx) |
| Returns the requested area. | |
| CTestBaseListSPtr | getAreas (isys::CTestProfiler::EAreaType areaType, bool isConst) |
| Returns areas of the given type. | |
| size_t | getAreasSize (EAreaType areaType) |
| Returns the number of profiler area items. | |
| CTestBaseListSPtr | getCodeAreas (bool isConst) |
| Returns code areas specified for profiler. | |
| CTestBaseListSPtr | getDataAreas (bool isConst) |
| Returns data areas specified for profiler. | |
| std::string | getDocumentFileName () |
| Returns name of the document to contain trace results. | |
| std::string | getExportFileName () |
| Returns the export file name. | |
| std::string | getExportFormat () |
| Returns the export format type. | |
| std::string | getOpenMode () |
| Returns one of the open mode strings: "r", "w", or "a". | |
| ERunMode | getRunMode () |
| Returns run mode. | |
| std::string | getTriggerName () |
| Returns the name of the trigger to be used for trace start. | |
| void | insertArea (isys::CTestProfilerStatisticsSPtr area, EAreaType areaType, int idx) |
| Adds empty area to the end of the list. | |
| virtual bool | isEmpty () const |
| This method returns true, if the object contains no data. | |
| iconnect::ETristate | isExportActiveAreasOnly () |
| Returns true, when only areas with recoded activity will be exported. | |
| bool | isMerged () const |
| Returns true, if the CTestSpecification section containing this object is merged. | |
| iconnect::ETristate | isProfileAUX () |
| Returns true, if AUX signals should be recorded during profiler session. | |
| bool | isRecordingConfigEmpty () |
| Returns true, if only profiler recoding configuration is empty, that means everything except data and code areas is empty. | |
| iconnect::ETristate | isSaveAfterTest () |
| Returns true, if the document should be saved after test. | |
| iconnect::ETristate | isSaveHistory () |
| Returns true, if profiler history should also be saved to output file. | |
| iconnect::ETristate | isSlowRun () |
| Returns E_TRUE, if slow run should be used for analyzer. | |
| void | removeArea (EAreaType areaType, int idx) |
| Removes the requested area. | |
| virtual void | serialize (const isys::IEmitterSPtr &emitter) |
| Sends contents of this class to emitter. | |
| void | setCloseAfterTest (iconnect::ETristate isClose) |
| Sets close operation for trace document after test. | |
| void | setCodeAreas (CTestBaseListSPtr &) |
| Sets code areas for profiler. | |
| void | setDataAreas (CTestBaseListSPtr &) |
| Sets data areas for profiler. | |
| void | setDocumentFileName (const std::string &docFileName) |
| Sets the name of the trace document. | |
| void | setExportActiveAreasOnly (iconnect::ETristate isExportActiveAreasOnly) |
If isExportActiveAreasOnly is true, then only areas with recorded activity (executed functions and modified data) will be exported. | |
| void | setExportFileName (const std::string &exportFileName) |
| Sets the export file name. | |
| void | setExportFormat (const std::string &exportFormat) |
| Sets export format for the trace document. | |
| void | setOpenMode (const std::string &openMode) |
| Sets open mode for document. | |
| void | setProfileAUX (iconnect::ETristate isProfileAUX) |
If parameter is true, then AUX signals are recorded during profiling. | |
| void | setRunMode (ERunMode mode) |
| Sets run mode. | |
| void | setSaveAfterTest (iconnect::ETristate isSave) |
| Sets save operation for trace document after test. | |
| void | setSaveHistory (iconnect::ETristate isSave) |
| Sets the save mode for output file. | |
| void | setSlowRun (iconnect::ETristate isSlowRun) |
If parameter is true, then slow run is used for analyzer. | |
| void | setTriggerName (const std::string &triggerName) |
| Sets name of the trigger to be used for trace start. | |
| void | swapAreas (EAreaType areaType, int idx1, int idx2) |
| Swaps two areas in the list. | |
| virtual std::string | toString () |
| Returns object data as YAML string. | |
Static Public Member Functions | |
| static CTestProfilerSPtr | cast (CTestBaseSPtr &testBase) |
| Casts the given pointer to this class. | |
Protected Member Functions | |
| void | setStaticTagsAsConst () |
| This method is called by all objects which are immediately contained in CTestSpecification, for example CTestCoverage, CTestHIL, ... | |
This class contains specification for profiler recording during test execution.
|
inherited |
Trace modes.
| Enumerator | |
|---|---|
| M_OFF | trace will not be configured or started |
| M_START | start trace |
| M_RESUME | Deprecated: use open mode Resumes session, currently supported only for coverage. Method setRunMode(M_RESUME) throws an exception if called on trace or profiler document. |
| isys::CTestProfiler::CTestProfiler | ( | const CTestBaseSPtr & | parent | ) |
Initializes new instance.
| parent | an instance of parent CTestSpecification class. Used only when parsing YAML declaration. Can be specified as NULL if the object is not initialized by parser. |
| int isys::CTestProfiler::findArea | ( | const std::string & | areaName, |
| int64_t | areaValue ) |
Returns index of the data area, or -1 if the area is not found.
This method searches for data areas with value set.
| int isys::CTestProfiler::findArea | ( | EAreaType | areaType, |
| const std::string & | areaName ) |
Returns index of the area or -1 if the area is not found.
| areaType | if set to DATA_AREA, then only data areas without value set can match. |
| areaName | name of area. |
|
inherited |
Returns the export format type.
See CAnalyzerDocController for possible values.
|
inherited |
Returns the name of the trigger to be used for trace start.
The trigger should be defined in winIDEA GUI.
| iconnect::ETristate isys::CTestProfiler::isExportActiveAreasOnly | ( | ) |
Returns true, when only areas with recoded activity will be exported.
Returns false, if all configured areas will be exported.
| void isys::CTestProfiler::setExportActiveAreasOnly | ( | iconnect::ETristate | isExportActiveAreasOnly | ) |
If isExportActiveAreasOnly is true, then only areas with recorded activity (executed functions and modified data) will be exported.
Otherwise all configured areas will be exported.
|
inherited |
Sets export format for the trace document.
See CAnalyzerDocController for possible values.
|
inherited |
Sets open mode for document.
| openMode | can be one of:
|
| void isys::CTestProfiler::setSaveHistory | ( | iconnect::ETristate | isSave | ) |
Sets the save mode for output file.
If true, history will also be saved.
|
inherited |
Sets name of the trigger to be used for trace start.
The trigger must be defined in winIDEA GUI.