Add rendering info reports to ActionJournal (#3545)

This commit is contained in:
Adrian Cojocaru
2025-07-29 19:46:46 +03:00
committed by GitHub
parent 2077df9a2c
commit 8011fa51be
15 changed files with 244 additions and 10 deletions

View File

@@ -30,6 +30,11 @@ MLN_EXPORT
*/
@property (nonatomic) NSInteger logFileCount;
/**
* The wait time (seconds) between rendering reports
*/
@property (nonatomic) NSInteger renderingStatsReportInterval;
@end
NS_ASSUME_NONNULL_END

View File

@@ -51,4 +51,12 @@
return _actionJournalOptionsInternal->logFileCount();
}
- (void)setRenderingStatsReportInterval:(NSInteger)value {
_actionJournalOptionsInternal->withRenderingStatsReportInterval(static_cast<uint32_t>(value));
}
- (NSInteger)renderingStatsReportInterval {
return _actionJournalOptionsInternal->renderingStatsReportInterval();
}
@end

View File

@@ -6,9 +6,9 @@ NS_ASSUME_NONNULL_BEGIN
MLN_EXPORT
@interface MLNRenderingStats : NSObject
/// Frame CPU encoding time (milliseconds)
/// Frame CPU encoding time (seconds)
@property (readonly) double encodingTime;
/// Frame CPU rendering time (milliseconds)
/// Frame CPU rendering time (seconds)
@property (readonly) double renderingTime;
/// Number of frames rendered