summaryrefslogtreecommitdiffstats
path: root/qtip/collector
AgeCommit message (Collapse)AuthorFilesLines
2017-03-25bugfix: regex for dpiwu.zhihui1-2/+2
see: https://build.opnfv.org/ci/view/qtip/job/ qtip-os-nosdn-kvm-ha-zte-pod3-daily-danube/3/console Previous regex cann't match with log like: "nDPI throughput: 943.34 K pps / 8.86 Gb/sec". For pps, there are two type of unit: K and M. Same with bps. Change-Id: I247c8b6049cc8b264fe894538cd4f89ba544c0b8 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit 6ee214ad9487dfaa121c72d8487464f63992c5ff)
2017-03-15optimize console infowu.zhihui1-2/+0
- use QtipLogger instead of print - delete useless print Change-Id: I1e08382a5d78ce53cf455496363bce3762b81dd2 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit 3391a3c6ab4f6b33e2f6d74e858a7bad573695b1)
2017-03-14parse benchmark result from logfilewu.zhihui3-2/+195
- Put all the regex rules in regex.yaml. - According to benchmark name, we can find related regexes. Change-Id: Ic15bd1c77b525be3751011fa94d582da077b0345 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit dc92e5ae19dd026bf6a14c1e0d2b9c50497845d5)
2017-02-24Fix bug when no paths is given for Plan constructorYujun Zhang1-6/+5
FileLoader was trying to initialize abspath by finding a matched name from abspath which will lead to an exception. Use default paths of class instead. Change-Id: I8ca2122e97edd734aa68b4c6b12196960842313b Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-22bugfix for grepwu.zhihui1-2/+2
Change-Id: I1474a4e4f5884f17cbf3e6d62fae7e743921aae1 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-02-21support multi-line search in grep parserwu.zhihui1-2/+3
use finditer with multiline mode JIRA: QTIP-211 Change-Id: Ib8854f749a0258f6b6775be9b80573f6ac8e47db Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-02-15Implement logfile collector and grep parserYujun Zhang4-36/+80
JIRA: QTIP-207 JIRA: QTIP-208 Change-Id: Icc14d3097fb305e59df716636ef87504490c9d1b Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-15Refactoring collector initialization in plan loaderYujun Zhang2-2/+19
- move ClassProps to module - collectors should be array in plan definition Change-Id: I37d85dbc977c91aa1bb81de45b5e1c41660e6d1f Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-01-29Refactor loader classesYujun Zhang2-0/+26
- rename BaseLoader to YamlFileLoader as base class of QTIP specs loader - create an abstract BaseLoader - create FileLoader for logfile collector Change-Id: I0c992cd847fc0dce4fdd73a13c1cdbc406c84532 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-01-11sample QPI for doctor performance measured in verification jobYujun Zhang3-0/+26
The doctor benchmark plan produces a performance profile consist of timestamp at each checkpoint and time cost of each phase.[1] It collects data from log files and render a timeline diagram in console Current progress - skeleton created - method to be implemented [1]: http://artifacts.opnfv.org/doctor/docs/design/index.html#document-performance-profiler JIRA: QTIP-199 Change-Id: I60fbbd37d04a5724841bd85cb3bfed9eabd3741a Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-01-03Add module skeletonsYujun Zhang3-0/+26
- Remove `suite` and `case` which seems redundant at the moment - Rename `qtip.spec` to `qtip.loader` since the class loads spec - Add driver `sample` which will generate random performance data - Add collector `logfile` which will collect result from log files - Add reporter `console` which will print report to console - Add exception classes See updated class diagram in https://wiki.opnfv.org/display/qtip/Design JIRA: QTIP-148 JIRA: QTIP-193 Change-Id: Idf751d33428176a26224e4443100a142feda6f32 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>