Improve styling of Hprof Analysis for Memory Tools plugin
Summary: Improves the look of analyzed Hprof data for the Memory Tools plugin. Adds an expandable/collapsable tree using ElementsInspector and groups large objects/leaked objects. https://pxl.cl/fxNs Reviewed By: danielbuechele Differential Revision: D8721141 fbshipit-source-id: f78fe32bd2ca1f11ce39b9e696f48a56dc5c9bff
This commit is contained in:
committed by
Facebook Github Bot
parent
221cdda89d
commit
a4638033b7
@@ -61,7 +61,11 @@ export default class ElementsInspector extends Component<{
|
||||
root: ?ElementID,
|
||||
elements: {[key: ElementID]: Element},
|
||||
useAppSidebar?: boolean,
|
||||
alternateRowColor?: boolean,
|
||||
}> {
|
||||
static defaultProps = {
|
||||
alternateRowColor: true,
|
||||
};
|
||||
render() {
|
||||
const {
|
||||
selected,
|
||||
@@ -71,6 +75,7 @@ export default class ElementsInspector extends Component<{
|
||||
onElementSelected,
|
||||
onElementHovered,
|
||||
searchResults,
|
||||
alternateRowColor,
|
||||
} = this.props;
|
||||
|
||||
return (
|
||||
@@ -83,6 +88,7 @@ export default class ElementsInspector extends Component<{
|
||||
searchResults={searchResults}
|
||||
root={root}
|
||||
elements={elements}
|
||||
alternateRowColor={alternateRowColor}
|
||||
/>
|
||||
</FlexRow>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user