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

Unified Diff: tools/binary_size/java/src/org/chromium/tools/binary_size/Record.java

Issue 119083006: Add tool to help analyze binary size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto master for a clean commit of gyp change Created 6 years, 11 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
Index: tools/binary_size/java/src/org/chromium/tools/binary_size/Record.java
diff --git a/tools/binary_size/java/src/org/chromium/tools/binary_size/Record.java b/tools/binary_size/java/src/org/chromium/tools/binary_size/Record.java
new file mode 100644
index 0000000000000000000000000000000000000000..e5066f40672198ce5c14b0e03c067842392e8b6e
--- /dev/null
+++ b/tools/binary_size/java/src/org/chromium/tools/binary_size/Record.java
@@ -0,0 +1,45 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+package org.chromium.tools.binary_size;
+
+/**
+ * A record that is filled in partially by nm and partially by addr2line,
+ * along with tracking information about whether or not the lookup in
+ * addr2line was successful.
+ */
+class Record {
+ /**
+ * The base-16 address, as a string.
+ */
+ String address;
+
+ /**
+ * The symbol type.
+ */
+ char symbolType;
+
+ /**
+ * The name of the symbol. Note that this may include whitespace, but
+ * not tabs.
+ */
+ String symbolName;
+
+ /**
+ * The base-10 size in bytes, as a String.
+ */
+ String size;
+
+ /**
+ * The location, if available; may include a file name and, optionally,
+ * a colon separator character followed by a line number or a
+ * question mark.
+ */
+ String location;
+
+ /**
+ * Whether or not the record was successfully resolved. Records that are
+ * successfully resolved should have a non-null location.
+ */
+ boolean resolvedSuccessfully;
+}

Powered by Google App Engine
This is Rietveld 408576698