Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: Makefile.standalone

Issue 917203002: Subzero: Generate a web page showing llvm2ice size breakdown. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add legend. Add third-party README. Fix html. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | bloat/README.chromium » ('j') | bloat/llvm2ice.bloat.html » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Makefile.standalone
diff --git a/Makefile.standalone b/Makefile.standalone
index 060a014877870c8c0ec8a8acdfd8a98cc00b7e13..869535d2d218b50e15d43ca0f9afb43ad37d7a85 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
+ @echo See Subzero size breakdown in bloat/llvm2ice.bloat.html
JF 2015/02/12 19:27:41 Won't that pollute the src directory, instead of t
Jim Stichnoth 2015/02/12 21:06:14 No, at least not in the way that I think you're th
+
clean:
- rm -rf llvm2ice *.o $(OBJDIR)
+ rm -rf llvm2ice *.o $(OBJDIR) llvm2ice.bloat.json
clean-all: clean
rm -rf build/
« no previous file with comments | « no previous file | bloat/README.chromium » ('j') | bloat/llvm2ice.bloat.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698