CollapsingHistory.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_SRC_COLLAPSINGHISTORY_H
10 #define SQUID_SRC_COLLAPSINGHISTORY_H
11 
14 {
15 public:
17  bool collapsed() const { return revalidationCollapses || otherCollapses; }
18 
19  /* These stats count collapsing decisions, regardless of their outcome. */
20 
24  int otherCollapses = 0;
25 };
26 
27 #endif /* SQUID_SRC_COLLAPSINGHISTORY_H */
28 
int revalidationCollapses
the total number of collapsed internal revalidation requests
collapsed forwarding history of a master transaction
int otherCollapses
the total number of all other (a.k.a. "classic") collapsed requests
bool collapsed() const
whether at least one request was collapsed

 

Introduction

Documentation

Support

Miscellaneous