Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
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
nexedi
MariaDB
Commits
72218964
Commit
72218964
authored
Jul 08, 2014
by
John Esmet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FT-300 Fix OSX build
parent
19742526
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
tools/ba_replay.cc
tools/ba_replay.cc
+8
-8
No files found.
tools/ba_replay.cc
View file @
72218964
...
@@ -311,25 +311,25 @@ static void print_result(uint64_t allocator_id,
...
@@ -311,25 +311,25 @@ static void print_result(uint64_t allocator_id,
uint64_t
total_bytes
=
report
->
data_bytes
+
report
->
unused_bytes
;
uint64_t
total_bytes
=
report
->
data_bytes
+
report
->
unused_bytes
;
uint64_t
total_blocks
=
report
->
data_blocks
+
report
->
unused_blocks
;
uint64_t
total_blocks
=
report
->
data_blocks
+
report
->
unused_blocks
;
printf
(
"
\n
"
);
printf
(
"
\n
"
);
printf
(
"allocator_id: %20
ld
\n
"
,
allocator_id
);
printf
(
"allocator_id: %20
"
PRId64
"
\n
"
,
allocator_id
);
printf
(
"strategy: %20s
\n
"
,
strategy_str
(
strategy
));
printf
(
"strategy: %20s
\n
"
,
strategy_str
(
strategy
));
// byte statistics
// byte statistics
printf
(
"total bytes: %20
ld
\n
"
,
total_bytes
);
printf
(
"total bytes: %20
"
PRId64
"
\n
"
,
total_bytes
);
printf
(
"used bytes: %20
ld
(%.3lf)
\n
"
,
report
->
data_bytes
,
printf
(
"used bytes: %20
"
PRId64
"
(%.3lf)
\n
"
,
report
->
data_bytes
,
static_cast
<
double
>
(
report
->
data_bytes
)
/
total_bytes
);
static_cast
<
double
>
(
report
->
data_bytes
)
/
total_bytes
);
printf
(
"unused bytes: %20
ld
(%.3lf)
\n
"
,
report
->
unused_bytes
,
printf
(
"unused bytes: %20
"
PRId64
"
(%.3lf)
\n
"
,
report
->
unused_bytes
,
static_cast
<
double
>
(
report
->
unused_bytes
)
/
total_bytes
);
static_cast
<
double
>
(
report
->
unused_bytes
)
/
total_bytes
);
// block statistics
// block statistics
printf
(
"total blocks: %20
ld
\n
"
,
total_blocks
);
printf
(
"total blocks: %20
"
PRId64
"
\n
"
,
total_blocks
);
printf
(
"used blocks: %20
ld
(%.3lf)
\n
"
,
report
->
data_blocks
,
printf
(
"used blocks: %20
"
PRId64
"
(%.3lf)
\n
"
,
report
->
data_blocks
,
static_cast
<
double
>
(
report
->
data_blocks
)
/
total_blocks
);
static_cast
<
double
>
(
report
->
data_blocks
)
/
total_blocks
);
printf
(
"unused blocks: %20
ld
(%.3lf)
\n
"
,
report
->
unused_blocks
,
printf
(
"unused blocks: %20
"
PRId64
"
(%.3lf)
\n
"
,
report
->
unused_blocks
,
static_cast
<
double
>
(
report
->
unused_blocks
)
/
total_blocks
);
static_cast
<
double
>
(
report
->
unused_blocks
)
/
total_blocks
);
// misc
// misc
printf
(
"largest unused: %20
ld
\n
"
,
report
->
largest_unused_block
);
printf
(
"largest unused: %20
"
PRId64
"
\n
"
,
report
->
largest_unused_block
);
}
}
int
main
(
void
)
{
int
main
(
void
)
{
...
...
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