Stroika Library
3.0d16
Help-Home
Loading...
Searching...
No Matches
AllInstruments.cpp
1
/*
2
* Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3
*/
4
#include "Stroika/Frameworks/StroikaPreComp.h"
5
6
#include "Instruments/CPU.h"
7
#include "Instruments/Filesystem.h"
8
#include "Instruments/Memory.h"
9
#include "Instruments/Network.h"
10
#include "Instruments/Process.h"
11
12
#include "AllInstruments.h"
13
14
using namespace
Stroika::Foundation
;
15
using namespace
Stroika::Foundation::Containers
;
16
using namespace
Stroika::Foundation::Memory;
17
18
using namespace
Stroika::Frameworks;
19
using namespace
Stroika::Frameworks::SystemPerformance;
20
21
/*
22
********************************************************************************
23
******************* SystemPerformance::GetAllInstruments ***********************
24
********************************************************************************
25
*/
26
Set<Instrument>
SystemPerformance::GetAllInstruments ()
27
{
28
/*
29
* OK to cache - copyable - but construct AFTER main (only when called here).
30
*
31
* Return a sorted set. Not strictly required, but looks better in some uses, and doesn't cost anything.
32
*/
33
static
Set<Instrument>
kInstruments_ =
SortedSet<Instrument>
{
34
Instruments::CPU::Instrument
{},
Instruments::Filesystem::Instrument
{},
Instruments::Memory::Instrument
{},
35
Instruments::Network::Instrument
{},
Instruments::Process::Instrument
{},
36
};
37
return
kInstruments_;
38
}
Stroika::Foundation::Containers::Set
Set<T> is a container of T, where once an item is added, additionally adds () do nothing.
Definition
Set.h:105
Stroika::Foundation::Containers::SortedSet
Definition
SortedSet.h:61
Stroika::Foundation::Containers
Definition
String.h:55
Stroika::Foundation
Definition
BloomFilter.h:22
Stroika::Frameworks::SystemPerformance::Instruments::CPU::Instrument
Definition
CPU.h:156
Stroika::Frameworks::SystemPerformance::Instruments::Filesystem::Instrument
Definition
Frameworks/SystemPerformance/Instruments/Filesystem.h:254
Stroika::Frameworks::SystemPerformance::Instruments::Memory::Instrument
Definition
Memory.h:325
Stroika::Frameworks::SystemPerformance::Instruments::Network::Instrument
Definition
Network.h:167
Stroika::Frameworks::SystemPerformance::Instruments::Process::Instrument
Definition
Frameworks/SystemPerformance/Instruments/Process.h:340
Library
Sources
Stroika
Frameworks
SystemPerformance
AllInstruments.cpp
Generated by
1.9.8