Index: Makefile.standalone |
diff --git a/Makefile.standalone b/Makefile.standalone |
index 060a014877870c8c0ec8a8acdfd8a98cc00b7e13..562178e5f646c2d0f7f75a79c3f5f6f9206fe938 100644 |
--- a/Makefile.standalone |
+++ b/Makefile.standalone |
@@ -152,7 +152,7 @@ make_symlink: $(OBJDIR)/llvm2ice |
@echo "Build Attributes:" |
@$(OBJDIR)/llvm2ice --build-atts |
-.PHONY: all make_symlink |
+.PHONY: all make_symlink bloat |
# TODO(kschimpf): Fix python scripts to directly get build attributes |
# rather than generating $(OBJDIR)/llvm2ice.build_atts. |
@@ -214,8 +214,13 @@ format-diff: |
$(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ |
-p1 -style=LLVM -i |
+bloat: make_symlink |
+ nm -C -S -l llvm2ice | \ |
+ bloat/bloat.py --nm-output=/dev/stdin syms > llvm2ice.bloat.json |
+ google-chrome --incognito bloat/llvm2ice.bloat.html |
JF
2015/02/12 17:20:28
Eek, launching Chrome. What if use google-chrome-b
Jim Stichnoth
2015/02/12 18:39:50
OK, changed to echo a message saying what file to
|
+ |
clean: |
- rm -rf llvm2ice *.o $(OBJDIR) |
+ rm -rf llvm2ice *.o $(OBJDIR) llvm2ice.bloat.json |
clean-all: clean |
rm -rf build/ |