Skip to content

Commit

Permalink
Process heap capture into trace html
Browse files Browse the repository at this point in the history
Reviewed By: bestander

Differential Revision: D3642188

fbshipit-source-id: c9a4699b2a0d60eb5961333dec45941085e19324
  • Loading branch information
cwdick authored and Facebook Github Bot 7 committed Aug 8, 2016
1 parent cb59264 commit 54f867f
Show file tree
Hide file tree
Showing 10 changed files with 2,509 additions and 5 deletions.
2 changes: 2 additions & 0 deletions local-cli/server/middleware/heapCapture/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/captures/*
preLoadedCapture.js
5 changes: 5 additions & 0 deletions local-cli/server/middleware/heapCapture/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
all:
NODE_PATH="../../../../node_modules/" babel --presets babel-preset-react-native -d out src

watch:
NODE_PATH="../../../../node_modules/" babel --watch --presets babel-preset-react-native -d out src
16 changes: 16 additions & 0 deletions local-cli/server/middleware/heapCapture/heapCapture.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%;">
<head>
<meta charset="utf-8">
<title>JSC Heap Capture</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.1/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.1/react-dom.min.js"></script>
<script src="out/aggrow.js"></script>
<script src="out/table.js"></script>
</head>
<body style="margin:0px; height: 100%">
Loading... This could take a while depending on how big the profile is. Check devtools console for errors.
</body>
<script src="preLoadedCapture.js"></script>
<script src="out/heapCapture.js"></script>
</html>
Loading

0 comments on commit 54f867f

Please sign in to comment.