Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
dart::CpuInfo Class Reference

#include <cpuinfo.h>

Inheritance diagram for dart::CpuInfo:
dart::AllStatic

Static Public Member Functions

static void Init ()
 
static void Cleanup ()
 
static const char * FieldName (CpuInfoIndices idx)
 
static bool FieldContains (CpuInfoIndices idx, const char *search_string)
 
static bool HasField (const char *field)
 
static const char * GetCpuModel ()
 

Detailed Description

Definition at line 41 of file cpuinfo.h.

Member Function Documentation

◆ Cleanup()

static void dart::CpuInfo::Cleanup ( )
static

◆ FieldContains()

static bool dart::CpuInfo::FieldContains ( CpuInfoIndices  idx,
const char *  search_string 
)
static

◆ FieldName()

static const char * dart::CpuInfo::FieldName ( CpuInfoIndices  idx)
inlinestatic

Definition at line 46 of file cpuinfo.h.

46 {
47 ASSERT((idx >= 0) && (idx < kCpuInfoMax));
48 return fields_[idx];
49 }
#define ASSERT(E)
@ kCpuInfoMax
Definition: cpuinfo.h:21

◆ GetCpuModel()

static const char * dart::CpuInfo::GetCpuModel ( )
inlinestatic

Definition at line 59 of file cpuinfo.h.

59 {
61 return ExtractField(kCpuInfoHardware);
62 } else {
63 return Utils::StrDup("Unknown");
64 }
65 }
static const char * FieldName(CpuInfoIndices idx)
Definition: cpuinfo.h:46
static bool HasField(const char *field)
static char * StrDup(const char *s)
@ kCpuInfoHardware
Definition: cpuinfo.h:18

◆ HasField()

static bool dart::CpuInfo::HasField ( const char *  field)
static

◆ Init()

static void dart::CpuInfo::Init ( )
static

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