Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aaron Chen
erp5
Commits
b1ac3398
Commit
b1ac3398
authored
Sep 13, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output 6 diagrams per page instead of 12 for reports
parent
6773423b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
erp5/util/benchmark/report.py
erp5/util/benchmark/report.py
+7
-3
No files found.
erp5/util/benchmark/report.py
100644 → 100755
View file @
b1ac3398
...
@@ -227,6 +227,8 @@ import re
...
@@ -227,6 +227,8 @@ import re
user_re
=
re
.
compile
(
'-(
\
d+)use
r
s-'
)
user_re
=
re
.
compile
(
'-(
\
d+)use
r
s-'
)
DIAGRAM_PER_PAGE
=
6
def
generateReport
():
def
generateReport
():
argument_namespace
=
parseArguments
()
argument_namespace
=
parseArguments
()
...
@@ -248,11 +250,13 @@ def generateReport():
...
@@ -248,11 +250,13 @@ def generateReport():
argument_namespace
,
report_dict
[
'filename'
])
argument_namespace
,
report_dict
[
'filename'
])
title
=
"Ran suites with %d users"
%
len
(
report_dict
[
'filename'
])
title
=
"Ran suites with %d users"
%
len
(
report_dict
[
'filename'
])
for
slice_start_idx
in
range
(
0
,
len
(
stat_list
),
12
):
for
slice_start_idx
in
range
(
0
,
len
(
stat_list
),
DIAGRAM_PER_PAGE
):
if
slice_start_idx
!=
0
:
if
slice_start_idx
==
DIAGRAM_PER_PAGE
:
title
+=
' (Ctd.)'
title
+=
' (Ctd.)'
drawBarDiagram
(
pdf
,
title
,
stat_list
[
slice_start_idx
:
slice_start_idx
+
12
])
drawBarDiagram
(
pdf
,
title
,
stat_list
[
slice_start_idx
:
slice_start_idx
+
DIAGRAM_PER_PAGE
])
report_dict
[
'stats'
]
=
stat_list
report_dict
[
'stats'
]
=
stat_list
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment