Make disk cache inspection toggleable
Summary: Adds a toggle switch to show/hide disk cache images defaulting to inactive. The image data is only sent on the adb connection when the toggle is activated. Reviewed By: defHLT Differential Revision: D20002059 fbshipit-source-id: 05c9e515ffe09441e5cfb6f66eb14559ac4a322c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cfcb6837d1
commit
e466bc4aed
@@ -59,6 +59,7 @@ function mockPersistedState(
|
||||
closeableReferenceLeaks: [],
|
||||
isLeakTrackingEnabled: false,
|
||||
nextEventId: 0,
|
||||
showDiskImages: false,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -247,6 +248,7 @@ test('the metric reducer with the multiple events', () => {
|
||||
imagesMap,
|
||||
closeableReferenceLeaks: [],
|
||||
isLeakTrackingEnabled: true,
|
||||
showDiskImages: false,
|
||||
};
|
||||
const metricsReducer = FrescoPlugin.metricsReducer;
|
||||
expect(metricsReducer).toBeDefined();
|
||||
|
||||
Reference in New Issue
Block a user