Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
53db0bd2
Commit
53db0bd2
authored
Nov 05, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FlexeLinting
parent
2f07246f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vmod_debug.c
lib/libvmod_debug/vmod_debug.c
+3
-2
No files found.
lib/libvmod_debug/vmod_debug.c
View file @
53db0bd2
...
...
@@ -577,16 +577,17 @@ xyzzy_priv_perf(VRT_CTX, VCL_INT size, VCL_INT rounds)
for
(
r
=
0
;
r
<
rounds
;
r
++
)
{
for
(
s
=
1
;
s
<=
size
;
s
++
)
{
p
=
VRT_priv_task
(
ctx
,
(
void
*
)(
uintptr_t
)
s
);
AN
(
p
);
check
+=
(
uintptr_t
)
p
->
priv
;
p
->
priv
=
(
void
*
)(
uintptr_t
)(
s
*
rounds
+
r
);
}
}
t1
=
VTIM_mono
();
d
=
(
t1
-
t0
)
*
1e9
/
size
/
rounds
;
d
=
(
t1
-
t0
)
*
1e9
/
((
double
)
size
*
(
double
)
rounds
)
;
VSLb
(
ctx
->
vsl
,
SLT_Debug
,
"perf size %jd rounds %jd time %.
9
fns check %jd"
,
"perf size %jd rounds %jd time %.
1
fns check %jd"
,
(
intmax_t
)
size
,
(
intmax_t
)
rounds
,
d
,
(
uintmax_t
)
check
);
return
(
d
);
...
...
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