Files
MacMonitor/Sources/Telemetry/Process/MMProcessDetailInspector.h
gronod a46f91f2ad
MacMonitor CI/CD Pipeline / Build & Test (Intel x86_64) (push) Canceled after 0s
feat(telemetry): implement per-process thread, file descriptor, and socket inspector (fixes #12)
2026-09-08 12:41:56 +01:00

33 lines
1.0 KiB
Objective-C

#ifndef MMProcessDetailInspector_h
#define MMProcessDetailInspector_h
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/**
* MMProcessDetailInspector
* Provides deep per-process inspection: open file descriptors, vnode file paths,
* active network sockets, and thread states.
*/
@interface MMProcessDetailInspector : NSObject
/**
* Inspects a running process by PID.
*/
+ (nullable NSDictionary<NSString *, id> *)inspectProcessWithPID:(pid_t)pid;
/**
* Pure summarizer method for deterministic unit testing.
*/
+ (NSDictionary<NSString *, id> *)summarizeInspectionResultsWithPID:(pid_t)pid
threads:(NSArray<NSDictionary<NSString *, id> *> *)threads
fds:(NSArray<NSDictionary<NSString *, id> *> *)fds
sockets:(NSArray<NSDictionary<NSString *, id> *> *)sockets;
@end
NS_ASSUME_NONNULL_END
#endif /* MMProcessDetailInspector_h */