v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
heap::base::SmoothedBytesAndDuration Class Reference

#include <bytes.h>

Collaboration diagram for heap::base::SmoothedBytesAndDuration:

Public Member Functions

 SmoothedBytesAndDuration (v8::base::TimeDelta decay)
 
void Update (BytesAndDuration bytes_and_duration)
 
double GetThroughput () const
 
double GetThroughput (v8::base::TimeDelta delay) const
 

Private Member Functions

double Decay (double throughput, v8::base::TimeDelta delay) const
 

Private Attributes

double throughput_ = 0.0
 
const v8::base::TimeDelta decay_
 

Detailed Description

Definition at line 59 of file bytes.h.

Constructor & Destructor Documentation

◆ SmoothedBytesAndDuration()

heap::base::SmoothedBytesAndDuration::SmoothedBytesAndDuration ( v8::base::TimeDelta decay)
inlineexplicit

Definition at line 61 of file bytes.h.

Member Function Documentation

◆ Decay()

double heap::base::SmoothedBytesAndDuration::Decay ( double throughput,
v8::base::TimeDelta delay ) const
inlineprivate

Definition at line 82 of file bytes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetThroughput() [1/2]

double heap::base::SmoothedBytesAndDuration::GetThroughput ( ) const
inline

Definition at line 74 of file bytes.h.

◆ GetThroughput() [2/2]

double heap::base::SmoothedBytesAndDuration::GetThroughput ( v8::base::TimeDelta delay) const
inline

Definition at line 77 of file bytes.h.

Here is the call graph for this function:

◆ Update()

void heap::base::SmoothedBytesAndDuration::Update ( BytesAndDuration bytes_and_duration)
inline

Definition at line 64 of file bytes.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ decay_

const v8::base::TimeDelta heap::base::SmoothedBytesAndDuration::decay_
private

Definition at line 88 of file bytes.h.

◆ throughput_

double heap::base::SmoothedBytesAndDuration::throughput_ = 0.0
private

Definition at line 87 of file bytes.h.


The documentation for this class was generated from the following file: