Add rendering info reports to ActionJournal (#3545)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -51,4 +51,12 @@
|
||||
return _actionJournalOptionsInternal->logFileCount();
|
||||
}
|
||||
|
||||
- (void)setRenderingStatsReportInterval:(NSInteger)value {
|
||||
_actionJournalOptionsInternal->withRenderingStatsReportInterval(static_cast<uint32_t>(value));
|
||||
}
|
||||
|
||||
- (NSInteger)renderingStatsReportInterval {
|
||||
return _actionJournalOptionsInternal->renderingStatsReportInterval();
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user