Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for RN bridge data recording
Update RN sampler to be more precise in its data collection. Remove legacy RN support (< 0.51) Stop collecting network requests if network recording is disabled in profiler configuration Fix horizontal scroller appearing where it shouldn’t Fix many small issues
- Loading branch information
Showing
150 changed files
with
893 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-644 Bytes
(96%)
...ontents/Resources/English.lproj/Documentation/Resources/Instrument_CPUUsage.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(99%)
...ources/English.lproj/Documentation/Resources/Instrument_CPUUsage_DetailPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(98%)
...ces/English.lproj/Documentation/Resources/Instrument_CPUUsage_InspectorPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(96%)
...nts/Resources/English.lproj/Documentation/Resources/Instrument_DiskActivity.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(99%)
...es/English.lproj/Documentation/Resources/Instrument_DiskActivity_DetailPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(98%)
...English.lproj/Documentation/Resources/Instrument_DiskActivity_InspectorPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(99%)
.../Contents/Resources/English.lproj/Documentation/Resources/Instrument_Events.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(99%)
...esources/English.lproj/Documentation/Resources/Instrument_Events_DetailPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(96%)
...urces/English.lproj/Documentation/Resources/Instrument_Events_InspectorPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(96%)
...elp/Contents/Resources/English.lproj/Documentation/Resources/Instrument_FPS.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(99%)
...s/Resources/English.lproj/Documentation/Resources/Instrument_FPS_DetailPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(93%)
...esources/English.lproj/Documentation/Resources/Instrument_FPS_InspectorPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(96%)
...ents/Resources/English.lproj/Documentation/Resources/Instrument_MemoryUsage.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(99%)
...ces/English.lproj/Documentation/Resources/Instrument_MemoryUsage_DetailPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(94%)
.../English.lproj/Documentation/Resources/Instrument_MemoryUsage_InspectorPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(99%)
.../Resources/English.lproj/Documentation/Resources/Instrument_NetworkActivity.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(100%)
...English.lproj/Documentation/Resources/Instrument_NetworkActivity_DetailPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-644 Bytes
(99%)
...lish.lproj/Documentation/Resources/Instrument_NetworkActivity_InspectorPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.96 KB
(130%)
...Resources/English.lproj/Documentation/Resources/Instrument_RNBridgeCounters.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-8.71 KB
(87%)
...nglish.lproj/Documentation/Resources/Instrument_RNBridgeCounters_DetailPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.7 KB
...ish.lproj/Documentation/Resources/Instrument_RNBridgeCounters_InspectorPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5.29 KB
(140%)
...nts/Resources/English.lproj/Documentation/Resources/Instrument_RNBridgeData.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-21.3 KB
(78%)
...es/English.lproj/Documentation/Resources/Instrument_RNBridgeData_DetailPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+179 KB
...lproj/Documentation/Resources/Instrument_RNBridgeData_DetailPane_BridgeData.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.5 KB
...English.lproj/Documentation/Resources/Instrument_RNBridgeData_InspectorPane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.5 KB
...oj/Documentation/Resources/Instrument_RNBridgeData_InspectorPane_BridgeData.png
Oops, something went wrong.
Binary file added
BIN
+9.1 KB
...esources/English.lproj/Documentation/Resources/Instrument_RNBridgeData_Menu.png
Oops, something went wrong.
Binary file modified
BIN
-1.34 KB
(91%)
...tents/Resources/English.lproj/Documentation/Resources/Instrument_RNJSThread.png
Oops, something went wrong.
Binary file added
BIN
+49.3 KB
...rces/English.lproj/Documentation/Resources/Instrument_RNJSThread_DetailPane.png
Oops, something went wrong.
Binary file added
BIN
+8.81 KB
...s/English.lproj/Documentation/Resources/Instrument_RNJSThread_InspectorPane.png
Oops, something went wrong.
Binary file removed
BIN
-93.6 KB
...lish.lproj/Documentation/Resources/Instrument_RNJavaScriptThread_DetailPane.png
Diff not rendered.
Binary file modified
BIN
+311 Bytes
(100%)
...ents/Resources/English.lproj/Documentation/Resources/Integration_Discovered.png
Oops, something went wrong.
Binary file modified
BIN
-5.29 KB
(99%)
...elp/Contents/Resources/English.lproj/Documentation/Resources/Management_All.png
Oops, something went wrong.
Binary file modified
BIN
-115 Bytes
(100%)
...s/Resources/English.lproj/Documentation/Resources/Management_ContainerFiles.png
Oops, something went wrong.
Binary file modified
BIN
-391 Bytes
(100%)
...Contents/Resources/English.lproj/Documentation/Resources/Management_Cookies.png
Oops, something went wrong.
Binary file modified
BIN
+24 Bytes
(100%)
...tents/Resources/English.lproj/Documentation/Resources/Management_Pasteboard.png
Oops, something went wrong.
Binary file modified
BIN
-322 Bytes
(100%)
...nts/Resources/English.lproj/Documentation/Resources/Management_UserDefaults.png
Oops, something went wrong.
Binary file modified
BIN
+1.93 KB
(100%)
...ces/English.lproj/Documentation/Resources/ProfilingOptions_ProfilingOptions.png
Oops, something went wrong.
Binary file modified
BIN
+423 Bytes
(100%)
.../Contents/Resources/English.lproj/Documentation/Resources/Readme_Discovered.png
Oops, something went wrong.
Binary file modified
BIN
-481 Bytes
(100%)
...lp/Contents/Resources/English.lproj/Documentation/Resources/Readme_Document.png
Oops, something went wrong.
Binary file modified
BIN
-1.85 KB
(100%)
....help/Contents/Resources/English.lproj/Documentation/Resources/Readme_Intro.png
Oops, something went wrong.
Binary file modified
BIN
-644 Bytes
(100%)
...esources/English.lproj/Documentation/Resources/RecordingDocument_DetailPane.png
Oops, something went wrong.
Binary file modified
BIN
-644 Bytes
(94%)
.../English.lproj/Documentation/Resources/RecordingDocument_DetailPane_Console.png
Oops, something went wrong.
Binary file modified
BIN
+1.95 KB
(100%)
...s/Resources/English.lproj/Documentation/Resources/RecordingDocument_Example.png
Oops, something went wrong.
Binary file modified
BIN
-644 Bytes
(99%)
...urces/English.lproj/Documentation/Resources/RecordingDocument_InspectorPane.png
Oops, something went wrong.
Binary file modified
BIN
-644 Bytes
(100%)
...ources/English.lproj/Documentation/Resources/RecordingDocument_TimelinePane.png
Oops, something went wrong.
Binary file modified
BIN
-251 Bytes
(99%)
...s/Resources/English.lproj/Documentation/Resources/RecordingDocument_Toolbar.png
Oops, something went wrong.
Binary file modified
BIN
+242 Bytes
(100%)
DetoxInstruments/DetoxInstruments.help/Contents/Resources/English.lproj/Search.helpindex
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
DetoxInstruments/DetoxInstruments/Assets.xcassets/bridge_data.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "mac", | ||
"filename" : "bridge_data-dark.pdf" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
}, | ||
"properties" : { | ||
"template-rendering-intent" : "template" | ||
} | ||
} |
Binary file added
BIN
+66.9 KB
DetoxInstruments/DetoxInstruments/Assets.xcassets/bridge_data.imageset/bridge_data-dark.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...ments/DetailControllers/DetailDataProviders/ReactNative/DTXRNBridgeDataDataDataProvider.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// DTXRNBridgeDataDataDataProvider.h | ||
// DetoxInstruments | ||
// | ||
// Created by Leo Natan (Wix) on 10/29/18. | ||
// Copyright © 2018 Wix. All rights reserved. | ||
// | ||
|
||
#import "DTXDetailDataProvider.h" | ||
|
||
@interface DTXRNBridgeDataDataDataProvider : DTXDetailDataProvider | ||
|
||
@end |
95 changes: 95 additions & 0 deletions
95
...ments/DetailControllers/DetailDataProviders/ReactNative/DTXRNBridgeDataDataDataProvider.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// | ||
// DTXRNBridgeDataDataDataProvider.m | ||
// DetoxInstruments | ||
// | ||
// Created by Leo Natan (Wix) on 10/29/18. | ||
// Copyright © 2018 Wix. All rights reserved. | ||
// | ||
|
||
#import "DTXRNBridgeDataDataDataProvider.h" | ||
#import "DTXRNBridgeDataDataInspectorDataProvider.h" | ||
|
||
@implementation DTXRNBridgeDataDataDataProvider | ||
|
||
+ (Class)inspectorDataProviderClass | ||
{ | ||
return [DTXRNBridgeDataDataInspectorDataProvider class]; | ||
} | ||
|
||
- (NSString *)displayName | ||
{ | ||
return NSLocalizedString(@"Bridge Data", @""); | ||
} | ||
|
||
- (NSImage *)displayIcon | ||
{ | ||
NSImage* image = [NSImage imageNamed:@"bridge_data"]; | ||
image.size = NSMakeSize(16, 16); | ||
|
||
return image; | ||
} | ||
|
||
- (NSArray<NSNumber *> *)sampleTypes | ||
{ | ||
return @[@(DTXSampleTypeReactNativeBridgeDataType)]; | ||
} | ||
|
||
- (NSArray<DTXColumnInformation *> *)columns | ||
{ | ||
DTXColumnInformation* type = [DTXColumnInformation new]; | ||
type.title = NSLocalizedString(@"Type", @""); | ||
type.minWidth = 45; | ||
|
||
DTXColumnInformation* function = [DTXColumnInformation new]; | ||
function.title = NSLocalizedString(@"Function", @""); | ||
function.minWidth = 200; | ||
|
||
DTXColumnInformation* arguments = [DTXColumnInformation new]; | ||
arguments.title = NSLocalizedString(@"Data", @""); | ||
arguments.automaticallyGrowsWithTable = YES; | ||
|
||
return @[type, function, arguments]; | ||
} | ||
|
||
- (NSString*)_dataFromSample:(DTXReactNativeDataSample*)sample | ||
{ | ||
NSMutableString* str = [NSMutableString new]; | ||
|
||
if(sample.data.arguments.count > 0) | ||
{ | ||
[str appendFormat:@"%@: ", NSLocalizedString(@"Arguments", @"")]; | ||
[str appendString:[sample.data.arguments componentsJoinedByString:@", "]]; | ||
} | ||
|
||
if(sample.data.returnValue != nil) | ||
{ | ||
if(str.length != 0) | ||
{ | ||
[str appendString:@" "]; | ||
} | ||
|
||
[str appendFormat:@"%@: ", NSLocalizedString(@"Return Value", @"")]; | ||
[str appendString:sample.data.returnValue]; | ||
} | ||
|
||
return str; | ||
} | ||
|
||
- (NSString*)formattedStringValueForItem:(id)item column:(NSUInteger)column; | ||
{ | ||
DTXReactNativeDataSample* sample = (DTXReactNativeDataSample*)item; | ||
|
||
switch(column) | ||
{ | ||
case 0: | ||
return sample.isFromNative ? @"N → JS" : @"JS → N"; | ||
case 1: | ||
return sample.function; | ||
case 2: | ||
return [self _dataFromSample:sample]; | ||
default: | ||
return @""; | ||
} | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.