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

Issue 11490026: Move generate_perf_events_symbols flag to VM (Closed)

Created:
8 years ago by Max Heinritz
Modified:
8 years ago
Reviewers:
cshapiro, siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Move generate_perf_events_symbols flag to VM The generate_perf_events_symbols flag is currently processed in the standalone dart program's main.cc. This means that other VM clients (e.g. Dartium) cannot generate symbols for perf profiling. This CL moves the perf flag handling into the core VM.

Patch Set 1 #

Patch Set 2 : undelete an accidentally deleted line #

Total comments: 10

Patch Set 3 : Add ASSERTs, proper OS check, other corrections per Siva's review #

Total comments: 4

Patch Set 4 : add comment about moving registration to OS abstraction #

Patch Set 5 : Changing email to @google.com instead of @chromium.org #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -54 lines) Patch
M runtime/bin/main.cc View 4 chunks +0 lines, -32 lines 0 comments Download
M runtime/vm/code_observers.cc View 1 2 3 4 chunks +40 lines, -7 lines 0 comments Download
M runtime/vm/dart.h View 2 chunks +0 lines, -8 lines 0 comments Download
M runtime/vm/dart.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Max Heinritz
New, cleaner issue for the same change. Please ignore the previous, messier (now deleted) issue. ...
8 years ago (2012-12-11 05:31:58 UTC) #1
siva
https://chromiumcodereview.appspot.com/11490026/diff/2001/runtime/vm/code_observers.cc File runtime/vm/code_observers.cc (right): https://chromiumcodereview.appspot.com/11490026/diff/2001/runtime/vm/code_observers.cc#newcode14 runtime/vm/code_observers.cc:14: #include "bin/file.h" We can't include bin header files directly ...
8 years ago (2012-12-11 18:02:51 UTC) #2
Max Heinritz
Addresses Siva's comments. https://chromiumcodereview.appspot.com/11490026/diff/2001/runtime/vm/code_observers.cc File runtime/vm/code_observers.cc (right): https://chromiumcodereview.appspot.com/11490026/diff/2001/runtime/vm/code_observers.cc#newcode14 runtime/vm/code_observers.cc:14: #include "bin/file.h" On 2012/12/11 18:02:51, siva ...
8 years ago (2012-12-11 19:09:25 UTC) #3
siva
Ok we can clean up the OS specific stuff in a new CL (please create ...
8 years ago (2012-12-11 19:57:12 UTC) #4
Max Heinritz
8 years ago (2012-12-11 21:26:51 UTC) #5
Added TODO comments about moving registration and OS-specific logic to the OS
abstraction.

https://chromiumcodereview.appspot.com/11490026/diff/5001/runtime/vm/code_obs...
File runtime/vm/code_observers.cc (right):

https://chromiumcodereview.appspot.com/11490026/diff/5001/runtime/vm/code_obs...
runtime/vm/code_observers.cc:66: #if defined(TARGET_OS_LINUX)
On 2012/12/11 19:57:12, siva wrote:
> Please add a TODO that this host specific code will be cleaned up in a new CL
> (open a bug for it).

Done.

https://chromiumcodereview.appspot.com/11490026/diff/5001/runtime/vm/code_obs...
runtime/vm/code_observers.cc:163: // TODO(meh): move OS-specific logic to
separate module
On 2012/12/11 19:57:12, siva wrote:
> Is this comment still valid?

Clarified comment.

Powered by Google App Engine
This is Rietveld 408576698