Stroika Library 3.0d16
 
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
14using namespace Stroika::Foundation;
16using namespace Stroika::Foundation::Memory;
17
18using namespace Stroika::Frameworks;
19using namespace Stroika::Frameworks::SystemPerformance;
20
21/*
22 ********************************************************************************
23 ******************* SystemPerformance::GetAllInstruments ***********************
24 ********************************************************************************
25 */
26Set<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>{
36 };
37 return kInstruments_;
38}
Set<T> is a container of T, where once an item is added, additionally adds () do nothing.
Definition Set.h:105