Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tom Niget
slapos
Commits
d4df80f6
Commit
d4df80f6
authored
Nov 22, 2023
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5/test/benchmark: record mariadb data and binlog size after benchmark test.
parent
2190ccfa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
software/erp5/test/test/benchmarks.py
software/erp5/test/test/benchmarks.py
+14
-1
No files found.
software/erp5/test/test/benchmarks.py
View file @
d4df80f6
...
...
@@ -28,6 +28,7 @@
import
contextlib
import
datetime
import
json
import
os
import
pathlib
import
socket
import
struct
...
...
@@ -312,9 +313,21 @@ class TestOrderBuildPackingListSimulation(
mariadb_slowquery_log
=
pathlib
.
Path
(
self
.
getComputerPartitionPath
(
'mariadb'
))
/
'var'
/
'log'
/
'mariadb_slowquery.log'
mariadb_data
=
pathlib
.
Path
(
self
.
getComputerPartitionPath
(
'mariadb'
))
/
'srv'
/
'mariadb'
mariadb_data_size
=
sum
(
sum
(
os
.
path
.
getsize
(
os
.
path
.
join
(
root
,
f
))
for
f
in
files
)
\
for
root
,
dirs
,
files
in
os
.
walk
(
mariadb_data
))
mariadb_binlog_data
=
pathlib
.
Path
(
self
.
getComputerPartitionPath
(
'mariadb'
))
/
'srv'
/
'backup'
/
'mariadb-incremental'
mariadb_binlog_data_size
=
sum
(
sum
(
os
.
path
.
getsize
(
os
.
path
.
join
(
root
,
f
))
for
f
in
files
)
\
for
root
,
dirs
,
files
in
os
.
walk
(
mariadb_binlog_data
))
self
.
write_measurement
(
{
'pt-query-digest'
:
subprocess
.
check_output
(
(
pt_query_digest
,
mariadb_slowquery_log
),
text
=
True
)
(
pt_query_digest
,
mariadb_slowquery_log
),
text
=
True
),
'data-size'
:
mariadb_data_size
,
'binlog-data-size'
:
mariadb_binlog_data_size
,
})
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