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

Issue 12377099: Added support for "bin-ified" vmstats web app source files (Closed)

Created:
7 years, 9 months ago by Tom Ball
Modified:
7 years, 9 months ago
Reviewers:
sethladd1, srdjan, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Added support for "bin-ified" resources, used to link the vmstats web app files into the VM binary. create_resources.py takes a list of resources and writes each as a byte array, then builds a resource table. resources.h defines a simple lookup for these arrays, which vmstats uses. Committed: https://code.google.com/p/dart/source/detail?r=19569

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 89

Patch Set 6 : Code review fixes #

Patch Set 7 : Made model data immutable #

Total comments: 12

Patch Set 8 : Final code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1070 lines, -30 lines) Patch
M runtime/bin/bin.gypi View 1 2 3 4 5 6 7 7 chunks +34 lines, -0 lines 0 comments Download
A runtime/bin/resources.h View 1 2 3 4 5 6 7 1 chunk +53 lines, -0 lines 0 comments Download
A runtime/bin/vmstats/bargraph.dart View 1 2 3 4 5 6 7 1 chunk +223 lines, -0 lines 0 comments Download
A runtime/bin/vmstats/isolate_list.dart View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
A runtime/bin/vmstats/models.dart View 1 2 3 4 5 6 1 chunk +117 lines, -0 lines 0 comments Download
A runtime/bin/vmstats/packages/browser/dart.js View 1 2 1 chunk +249 lines, -0 lines 0 comments Download
A runtime/bin/vmstats/vmstats.css View 1 chunk +46 lines, -0 lines 0 comments Download
A runtime/bin/vmstats/vmstats.dart View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
A runtime/bin/vmstats/vmstats.html View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
M runtime/bin/vmstats_impl.cc View 1 2 3 4 5 6 7 6 chunks +75 lines, -30 lines 0 comments Download
A runtime/bin/vmstats_sources.gypi View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A runtime/tools/create_resources.py View 1 2 3 4 5 6 7 1 chunk +104 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Tom Ball
This CL isn't actually that big, as there are only two interesting changes: resources.h and ...
7 years, 9 months ago (2013-03-05 00:26:16 UTC) #1
sethladd1
https://codereview.chromium.org/12377099/diff/8002/runtime/bin/vmstats/server_access.dart File runtime/bin/vmstats/server_access.dart (right): https://codereview.chromium.org/12377099/diff/8002/runtime/bin/vmstats/server_access.dart#newcode4 runtime/bin/vmstats/server_access.dart:4: HttpRequest request = new HttpRequest(); have you seen http://api.dartlang.org/docs/releases/latest/dart_html/HttpRequest.html#getString ...
7 years, 9 months ago (2013-03-05 15:59:37 UTC) #2
Tom Ball
https://codereview.chromium.org/12377099/diff/8002/runtime/bin/vmstats/server_access.dart File runtime/bin/vmstats/server_access.dart (right): https://codereview.chromium.org/12377099/diff/8002/runtime/bin/vmstats/server_access.dart#newcode4 runtime/bin/vmstats/server_access.dart:4: HttpRequest request = new HttpRequest(); On 2013/03/05 15:59:37, sethladd1 ...
7 years, 9 months ago (2013-03-05 18:53:30 UTC) #3
Tom Ball
Used HttpRequest.getString(), which eliminated the need for server_access.dart.
7 years, 9 months ago (2013-03-05 21:46:39 UTC) #4
siva
+srdjan
7 years, 9 months ago (2013-03-05 22:38:33 UTC) #5
siva
https://codereview.chromium.org/12377099/diff/14001/runtime/bin/resources.h File runtime/bin/resources.h (right): https://codereview.chromium.org/12377099/diff/14001/runtime/bin/resources.h#newcode19 runtime/bin/resources.h:19: *resource = entry->resource_; ASSERT(entry->length_ > 0); https://codereview.chromium.org/12377099/diff/14001/runtime/bin/resources.h#newcode35 runtime/bin/resources.h:35: static ...
7 years, 9 months ago (2013-03-05 23:12:43 UTC) #6
srdjan
https://codereview.chromium.org/12377099/diff/14001/runtime/bin/resources.h File runtime/bin/resources.h (right): https://codereview.chromium.org/12377099/diff/14001/runtime/bin/resources.h#newcode16 runtime/bin/resources.h:16: for (unsigned i = 0; i < get_resource_count(); i++) ...
7 years, 9 months ago (2013-03-05 23:17:30 UTC) #7
Tom Ball
https://codereview.chromium.org/12377099/diff/14001/runtime/bin/resources.h File runtime/bin/resources.h (right): https://codereview.chromium.org/12377099/diff/14001/runtime/bin/resources.h#newcode16 runtime/bin/resources.h:16: for (unsigned i = 0; i < get_resource_count(); i++) ...
7 years, 9 months ago (2013-03-06 00:34:42 UTC) #8
srdjan
https://codereview.chromium.org/12377099/diff/14001/runtime/bin/vmstats/models.dart File runtime/bin/vmstats/models.dart (right): https://codereview.chromium.org/12377099/diff/14001/runtime/bin/vmstats/models.dart#newcode107 runtime/bin/vmstats/models.dart:107: Space get oldSpace => _oldSpace; On 2013/03/06 00:34:43, Tom ...
7 years, 9 months ago (2013-03-06 00:43:21 UTC) #9
Tom Ball
https://codereview.chromium.org/12377099/diff/14001/runtime/bin/vmstats/models.dart File runtime/bin/vmstats/models.dart (right): https://codereview.chromium.org/12377099/diff/14001/runtime/bin/vmstats/models.dart#newcode107 runtime/bin/vmstats/models.dart:107: Space get oldSpace => _oldSpace; On 2013/03/06 00:43:21, srdjan ...
7 years, 9 months ago (2013-03-06 01:04:49 UTC) #10
srdjan
LGTM https://codereview.chromium.org/12377099/diff/27002/runtime/bin/resources.h File runtime/bin/resources.h (right): https://codereview.chromium.org/12377099/diff/27002/runtime/bin/resources.h#newcode43 runtime/bin/resources.h:43: return builtin_resources_ + i; &builtin_resources_[i] https://codereview.chromium.org/12377099/diff/27002/runtime/bin/vmstats/vmstats.dart File runtime/bin/vmstats/vmstats.dart ...
7 years, 9 months ago (2013-03-06 01:14:37 UTC) #11
siva
lgtm https://codereview.chromium.org/12377099/diff/27002/runtime/bin/vmstats/bargraph.dart File runtime/bin/vmstats/bargraph.dart (right): https://codereview.chromium.org/12377099/diff/27002/runtime/bin/vmstats/bargraph.dart#newcode61 runtime/bin/vmstats/bargraph.dart:61: void drawGraph(var model) { model parameter doesn't seem ...
7 years, 9 months ago (2013-03-06 06:32:19 UTC) #12
Tom Ball
Thanks. https://codereview.chromium.org/12377099/diff/27002/runtime/bin/resources.h File runtime/bin/resources.h (right): https://codereview.chromium.org/12377099/diff/27002/runtime/bin/resources.h#newcode43 runtime/bin/resources.h:43: return builtin_resources_ + i; On 2013/03/06 01:14:37, srdjan ...
7 years, 9 months ago (2013-03-06 17:47:17 UTC) #13
Tom Ball
7 years, 9 months ago (2013-03-06 17:49:02 UTC) #14
Message was sent while issue was closed.
Committed patchset #8 manually as r19569 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698