proxygen
HTTPSessionStats.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree. An additional grant
7  * of patent rights can be found in the PATENTS file in the same directory.
8  *
9  */
10 #pragma once
11 
12 #include <chrono>
13 #include <inttypes.h>
15 
16 namespace proxygen {
17 
18 // This may be retired with a byte events refactor
19 class HTTPSessionStats : public TTLBAStats {
20  public:
22 
23  virtual void recordTransactionOpened() noexcept = 0;
24  virtual void recordTransactionClosed() noexcept = 0;
25  virtual void recordTransactionsServed(uint64_t) noexcept = 0;
26  virtual void recordSessionReused() noexcept = 0;
27  virtual void recordSessionIdleTime(std::chrono::seconds) noexcept {}
28  virtual void recordTransactionStalled() noexcept = 0;
29  virtual void recordSessionStalled() noexcept = 0;
30 };
31 
32 }
virtual void recordSessionIdleTime(std::chrono::seconds) noexcept
virtual void recordSessionStalled() noexcept=0
requires E e noexcept(noexcept(s.error(std::move(e))))
virtual void recordTransactionStalled() noexcept=0
virtual void recordTransactionClosed() noexcept=0
virtual void recordTransactionOpened() noexcept=0
virtual void recordSessionReused() noexcept=0
~HTTPSessionStats() noexceptoverride
virtual void recordTransactionsServed(uint64_t) noexcept=0