-
-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added efficiency and performance cores frequency and total core…
…s frequency
- Loading branch information
Showing
14 changed files
with
325 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// bridge.h | ||
// Stats | ||
// | ||
// Created by Serhiy Mytrovtsiy on 17/12/2024 | ||
// Using Swift 6.0 | ||
// Running on macOS 15.1 | ||
// | ||
// Copyright © 2024 Serhiy Mytrovtsiy. All rights reserved. | ||
// | ||
|
||
#ifndef bridge_h | ||
#define bridge_h | ||
|
||
#include <CoreFoundation/CoreFoundation.h> | ||
|
||
typedef struct IOReportSubscriptionRef* IOReportSubscriptionRef; | ||
|
||
CFDictionaryRef IOReportCopyChannelsInGroup(CFStringRef a, CFStringRef b, uint64_t c, uint64_t d, uint64_t e); | ||
void IOReportMergeChannels(CFDictionaryRef a, CFDictionaryRef b, CFTypeRef null); | ||
IOReportSubscriptionRef IOReportCreateSubscription(void* a, CFMutableDictionaryRef b, CFMutableDictionaryRef* c, uint64_t d, CFTypeRef e); | ||
CFDictionaryRef IOReportCreateSamples(IOReportSubscriptionRef a, CFMutableDictionaryRef b, CFTypeRef c); | ||
CFDictionaryRef IOReportCreateSamplesDelta(CFDictionaryRef a, CFDictionaryRef b, CFTypeRef c); | ||
CFStringRef IOReportChannelGetGroup(CFDictionaryRef a); | ||
CFStringRef IOReportChannelGetSubGroup(CFDictionaryRef a); | ||
CFStringRef IOReportChannelGetChannelName(CFDictionaryRef a); | ||
CFStringRef IOReportChannelGetUnitLabel(CFDictionaryRef a); | ||
int32_t IOReportStateGetCount(CFDictionaryRef a); | ||
CFStringRef IOReportStateGetNameForIndex(CFDictionaryRef a, int32_t b); | ||
int64_t IOReportStateGetResidency(CFDictionaryRef a, int32_t b); | ||
|
||
#endif /* bridge_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.