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

Issue 864173008: Split profiler.cc into profiler.cc and profiler_service.cc (Closed)

Created:
5 years, 10 months ago by Cutch
Modified:
5 years, 10 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Split profiler.cc into profiler.cc and profiler_service.cc BUG= R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=43623

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -2155 lines) Patch
M runtime/vm/profiler.h View 2 chunks +5 lines, -15 lines 0 comments Download
M runtime/vm/profiler.cc View 1 chunk +0 lines, -1367 lines 0 comments Download
A runtime/vm/profiler_service.h View 1 chunk +40 lines, -0 lines 0 comments Download
A + runtime/vm/profiler_service.cc View 13 chunks +32 lines, -761 lines 0 comments Download
A runtime/vm/scope_timer.h View 1 chunk +44 lines, -0 lines 4 comments Download
M runtime/vm/service.cc View 2 chunks +8 lines, -11 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
Cutch
5 years, 10 months ago (2015-02-09 22:38:51 UTC) #2
siva
lgtm https://codereview.chromium.org/864173008/diff/1/runtime/vm/scope_timer.h File runtime/vm/scope_timer.h (right): https://codereview.chromium.org/864173008/diff/1/runtime/vm/scope_timer.h#newcode13 runtime/vm/scope_timer.h:13: explicit ScopeTimer(const char* name, bool enabled = true) ...
5 years, 10 months ago (2015-02-09 23:20:00 UTC) #3
Cutch
https://codereview.chromium.org/864173008/diff/1/runtime/vm/scope_timer.h File runtime/vm/scope_timer.h (right): https://codereview.chromium.org/864173008/diff/1/runtime/vm/scope_timer.h#newcode13 runtime/vm/scope_timer.h:13: explicit ScopeTimer(const char* name, bool enabled = true) On ...
5 years, 10 months ago (2015-02-09 23:22:07 UTC) #4
Cutch
Committed patchset #1 (id:1) manually as 43623 (presubmit successful).
5 years, 10 months ago (2015-02-09 23:22:37 UTC) #5
RobertCNelson
5 years, 10 months ago (2015-02-17 23:51:17 UTC) #6
Message was sent while issue was closed.
On 2015/02/09 23:22:37, Cutch wrote:
> Committed patchset #1 (id:1) manually as 43623 (presubmit successful).

This commit is breaking Debian Jessie:

dart-edge$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.1-19'
--with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.9 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm
--disable-libquadmath --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf
--with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-sjlj-exceptions
--with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb
--enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.1 (Debian 4.9.1-19


  g++ '-DTARGET_ARCH_ARM' '-DNDEBUG' -Iruntime  -Werror -Wall -Wextra
-Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null
-Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -marm -mfpu=vfp
-Wno-psabi -fno-strict-overflow -O3  -MMD -MF
out/ReleaseARM/.deps/out/ReleaseARM/obj.host/libdart_vm/runtime/vm/profiler_service.o.d.raw
 -c -o out/ReleaseARM/obj.host/libdart_vm/runtime/vm/profiler_service.o
runtime/vm/profiler_service.cc
In file included from runtime/vm/profiler_service.cc:13:0:
runtime/vm/scope_timer.h: In static member function 'static void
dart::ProfilerService::PrintJSON(dart::JSONStream*,
dart::ProfilerService::TagOrder)':
runtime/vm/scope_timer.h:25:18: error: 'sw.dart::ScopeTimer::start_' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
     return end - start_;
                  ^
runtime/vm/profiler_service.cc:1278:20: note: 'sw.dart::ScopeTimer::start_' was
declared here
         ScopeTimer sw("CodeRegionTableBuilder", FLAG_trace_profiler);
                    ^
In file included from runtime/vm/profiler_service.cc:13:0:
runtime/vm/scope_timer.h:25:18: error: 'sw.dart::ScopeTimer::start_' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
     return end - start_;
                  ^
runtime/vm/profiler_service.cc:1270:20: note: 'sw.dart::ScopeTimer::start_' was
declared here
         ScopeTimer sw("FixTopFrame", FLAG_trace_profiler);
                    ^
cc1plus: all warnings being treated as errors
runtime/libdart_vm.host.mk:1132: recipe for target
'out/ReleaseARM/obj.host/libdart_vm/runtime/vm/profiler_service.o' failed
make[2]: *** [out/ReleaseARM/obj.host/libdart_vm/runtime/vm/profiler_service.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/«PKGBUILDDIR»/dart'
make -j 2 BUILDTYPE=ReleaseARM V=1 runtime
BUILD FAILED
make[1]: Leaving directory '/«PKGBUILDDIR»'

Regards,

Powered by Google App Engine
This is Rietveld 408576698