Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent3
Commits
99cff3e9
Commit
99cff3e9
authored
Jan 31, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add two stats counters, counting number of gzip and gunzip operations.
(fix a typo in previous commit)
parent
e9b315e3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
cache_gzip.c
bin/varnishd/cache_gzip.c
+2
-0
cache_response.c
bin/varnishd/cache_response.c
+1
-1
vsc_fields.h
include/vsc_fields.h
+3
-1
No files found.
bin/varnishd/cache_gzip.c
View file @
99cff3e9
...
@@ -160,6 +160,7 @@ VGZ_NewUngzip(struct sess *sp, const char *id)
...
@@ -160,6 +160,7 @@ VGZ_NewUngzip(struct sess *sp, const char *id)
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
vg
=
vgz_alloc_vgz
(
sp
,
id
);
vg
=
vgz_alloc_vgz
(
sp
,
id
);
VSC_main
->
n_gunzip
++
;
/*
/*
* Max memory usage according to zonf.h:
* Max memory usage according to zonf.h:
...
@@ -179,6 +180,7 @@ VGZ_NewGzip(struct sess *sp, const char *id)
...
@@ -179,6 +180,7 @@ VGZ_NewGzip(struct sess *sp, const char *id)
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
vg
=
vgz_alloc_vgz
(
sp
,
id
);
vg
=
vgz_alloc_vgz
(
sp
,
id
);
VSC_main
->
n_gzip
++
;
/*
/*
* From zconf.h:
* From zconf.h:
...
...
bin/varnishd/cache_response.c
View file @
99cff3e9
...
@@ -253,7 +253,7 @@ res_WriteGunzipObj(struct sess *sp)
...
@@ -253,7 +253,7 @@ res_WriteGunzipObj(struct sess *sp)
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
vg
=
VGZ_NewUngzip
(
sp
,
"U
R
-"
);
vg
=
VGZ_NewUngzip
(
sp
,
"U
D
-"
);
VTAILQ_FOREACH
(
st
,
&
sp
->
obj
->
store
,
list
)
{
VTAILQ_FOREACH
(
st
,
&
sp
->
obj
->
store
,
list
)
{
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
...
...
include/vsc_fields.h
View file @
99cff3e9
...
@@ -154,9 +154,11 @@ VSC_F(dir_dns_failed, uint64_t, 0, 'a', "DNS director failed lookups")
...
@@ -154,9 +154,11 @@ VSC_F(dir_dns_failed, uint64_t, 0, 'a', "DNS director failed lookups")
VSC_F
(
dir_dns_hit
,
uint64_t
,
0
,
'a'
,
"DNS director cached lookups hit"
)
VSC_F
(
dir_dns_hit
,
uint64_t
,
0
,
'a'
,
"DNS director cached lookups hit"
)
VSC_F
(
dir_dns_cache_full
,
uint64_t
,
0
,
'a'
,
"DNS director full dnscache"
)
VSC_F
(
dir_dns_cache_full
,
uint64_t
,
0
,
'a'
,
"DNS director full dnscache"
)
VSC_F
(
vmods
,
uint64_t
,
0
,
'i'
,
"Loaded VMODs"
)
VSC_F
(
vmods
,
uint64_t
,
0
,
'i'
,
"Loaded VMODs"
)
VSC_F
(
n_gzip
,
uint64_t
,
0
,
'a'
,
"Gzip operations"
)
VSC_F
(
n_gunzip
,
uint64_t
,
0
,
'a'
,
"Gunzip operations"
)
#endif
#endif
/**********************************************************************/
/**********************************************************************/
...
...
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