33 lines
1.0 KiB
Objective-C
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 */
|