Skip to content

Commit 0f54ce1

Browse files
Andrei MaletsAndrei_Malets
authored andcommitted
MAGETWO-72076: Update benchmark.jmx and README files in Performance Toolkit, add performance analytics script
- Coding style fixes
1 parent 41a71ab commit 0f54ce1

File tree

1 file changed

+4
-6
lines changed
  • setup/performance-toolkit/aggregate-report

1 file changed

+4
-6
lines changed

setup/performance-toolkit/aggregate-report/common.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
9-
* @SuppressWarnings(PHPMD.NPathComplexity)
10-
*/
11-
127
/**
138
* Generate aggregate report in CSV format based on JTL file.
149
*
@@ -32,7 +27,7 @@ function generateReport(array $mapping, callable $generateSummary, callable $row
3227
$args = getopt('j:m:o:f');
3328
if (empty($args['j']) || empty($args['o'])) {
3429
echo $usageMessage;
35-
exit(0);
30+
return;
3631
}
3732

3833
list($jmeterData, $executionTime) = parseJmeterReport($args['j'], isset($args['f']));
@@ -73,6 +68,7 @@ function parseMemoryUsageLog($memoryUsageReport)
7368
* @param string $jmeterReport Path to the JTL report
7469
* @param bool $includeErrors If true failed requests are included in report
7570
* @return array First element - requests grouped by title, second - total execution time of the scenario
71+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
7672
*/
7773
function parseJmeterReport($jmeterReport, $includeErrors)
7874
{
@@ -117,6 +113,7 @@ function parseJmeterReport($jmeterReport, $includeErrors)
117113
* @param array $memoryUsageData
118114
* @param array $mappings
119115
* @return array
116+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
120117
*/
121118
function prepareAggregatedResult(array $jmeterData, array $memoryUsageData, array $mappings)
122119
{
@@ -174,6 +171,7 @@ function ($a, $b) {
174171
* @param callable $generateSummary
175172
* @param callable $rowCallback [optional]
176173
* @return void
174+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
177175
*/
178176
function parseReportAndWriteToCsv(
179177
array $aggregatedResult,

0 commit comments

Comments
 (0)