Added alternative object format for CPU threads.
This commit is contained in:
parent
96fd7545d1
commit
42dc914eec
5 changed files with 106 additions and 46 deletions
|
@ -53,6 +53,13 @@ public:
|
|||
rapidjson::Value toJSON(rapidjson::Document &doc) const;
|
||||
|
||||
private:
|
||||
enum Format {
|
||||
ArrayFormat,
|
||||
ObjectFormat
|
||||
};
|
||||
|
||||
Format m_format = ArrayFormat;
|
||||
int64_t m_affinity = -1;
|
||||
std::vector<CpuThread> m_data;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue