class MemoryWorkloadGenerator

Defined at line 60 of file ../../src/zircon/bin/hwstress/memory_stress.h

Generates combinations of (workloads, cpu_number) to ensure an even coverage

of both.

For example, given the workloads [A, B] and 2 cpus, subsequent calls to |Next| will

return the values:

[{A, 0}, {B, 1}, {A, 1}, {B, 0}]

and then repeat the sequence.

Public Methods

void MemoryWorkloadGenerator (const std::vector<MemoryWorkload> & workloads, uint32_t num_cpus)

Generate combinations from the given list of workloads / number of CPUs.

Defined at line 302 of file ../../src/zircon/bin/hwstress/memory_stress.cc

Workload Next ()

Defined at line 337 of file ../../src/zircon/bin/hwstress/memory_stress.cc

Records