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

Issue 1781213002: Add malloc/new profiling on linux (Closed)

Created:
4 years, 9 months ago by sehr
Modified:
4 years, 9 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Cleaned up API, added operator new[] #

Patch Set 3 : Refactoring #

Total comments: 32

Patch Set 4 : Code review fixes. #

Total comments: 24

Patch Set 5 : More code reviews #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -0 lines) Patch
M Makefile.standalone View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M src/IceCompileServer.cpp View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A src/LinuxMallocProfiling.h View 1 2 3 4 1 chunk +38 lines, -0 lines 2 comments Download
A src/LinuxMallocProfiling.cpp View 1 2 3 4 1 chunk +106 lines, -0 lines 6 comments Download

Messages

Total messages: 15 (4 generated)
sehr
PTAL.
4 years, 9 months ago (2016-03-11 23:08:50 UTC) #3
Karl
lgtm https://codereview.chromium.org/1781213002/diff/40001/src/LinuxMallocProfiling.cpp File src/LinuxMallocProfiling.cpp (right): https://codereview.chromium.org/1781213002/diff/40001/src/LinuxMallocProfiling.cpp#newcode67 src/LinuxMallocProfiling.cpp:67: for (auto C : *Callers) { Should you ...
4 years, 9 months ago (2016-03-11 23:25:11 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/1781213002/diff/40001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/1781213002/diff/40001/Makefile.standalone#newcode155 Makefile.standalone:155: ifdef LINUX_MALLOC_PROFILE Update OBJDIR, something like: OBJDIR := $(OBJDIR)+MalProf ...
4 years, 9 months ago (2016-03-12 00:12:58 UTC) #6
Jim Stichnoth
https://codereview.chromium.org/1781213002/diff/40001/src/LinuxMallocProfiling.cpp File src/LinuxMallocProfiling.cpp (right): https://codereview.chromium.org/1781213002/diff/40001/src/LinuxMallocProfiling.cpp#newcode25 src/LinuxMallocProfiling.cpp:25: std::map<void*, uint64_t> *Callers; Probably should add a note somewhere ...
4 years, 9 months ago (2016-03-12 00:36:15 UTC) #7
sehr
PTAL. https://codereview.chromium.org/1781213002/diff/40001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/1781213002/diff/40001/Makefile.standalone#newcode155 Makefile.standalone:155: ifdef LINUX_MALLOC_PROFILE On 2016/03/12 00:12:57, stichnot wrote: > ...
4 years, 9 months ago (2016-03-15 00:36:46 UTC) #8
John
lgtm https://codereview.chromium.org/1781213002/diff/60001/src/IceCompileServer.cpp File src/IceCompileServer.cpp (right): https://codereview.chromium.org/1781213002/diff/60001/src/IceCompileServer.cpp#newcode171 src/IceCompileServer.cpp:171: Ice::LinuxMallocProfiling MallocProfile(Flags.getNumTranslationThreads()); you don't need MallocProfile for anything ...
4 years, 9 months ago (2016-03-15 15:19:07 UTC) #9
Jim Stichnoth
https://codereview.chromium.org/1781213002/diff/60001/src/LinuxMallocProfiling.cpp File src/LinuxMallocProfiling.cpp (right): https://codereview.chromium.org/1781213002/diff/60001/src/LinuxMallocProfiling.cpp#newcode17 src/LinuxMallocProfiling.cpp:17: #ifdef ALLOW_LINUX_MALLOC_PROFILE I don't like all the #ifdef here. ...
4 years, 9 months ago (2016-03-15 15:36:50 UTC) #10
sehr
PTAL. https://codereview.chromium.org/1781213002/diff/60001/src/IceCompileServer.cpp File src/IceCompileServer.cpp (right): https://codereview.chromium.org/1781213002/diff/60001/src/IceCompileServer.cpp#newcode171 src/IceCompileServer.cpp:171: Ice::LinuxMallocProfiling MallocProfile(Flags.getNumTranslationThreads()); On 2016/03/15 15:19:06, John wrote: > ...
4 years, 9 months ago (2016-03-17 16:47:14 UTC) #11
Jim Stichnoth
lgtm https://codereview.chromium.org/1781213002/diff/80001/src/LinuxMallocProfiling.cpp File src/LinuxMallocProfiling.cpp (right): https://codereview.chromium.org/1781213002/diff/80001/src/LinuxMallocProfiling.cpp#newcode17 src/LinuxMallocProfiling.cpp:17: #ifdef ALLOW_LINUX_MALLOC_PROFILE I would be happier with a ...
4 years, 9 months ago (2016-03-17 20:09:06 UTC) #12
sehr
Committed patchset #5 (id:80001) manually as 4c16ac0f4f184128060f3b8c3db519f1a6293dfa (presubmit successful).
4 years, 9 months ago (2016-03-17 20:51:47 UTC) #14
sehr
4 years, 9 months ago (2016-03-17 20:58:21 UTC) #15
Message was sent while issue was closed.
Thanks.  Committed.

https://codereview.chromium.org/1781213002/diff/80001/src/LinuxMallocProfilin...
File src/LinuxMallocProfiling.cpp (right):

https://codereview.chromium.org/1781213002/diff/80001/src/LinuxMallocProfilin...
src/LinuxMallocProfiling.cpp:17: #ifdef ALLOW_LINUX_MALLOC_PROFILE
On 2016/03/17 20:09:06, stichnot wrote:
> I would be happier with a blank line before and after each
#ifdef/#else/#endif.

Done.

https://codereview.chromium.org/1781213002/diff/80001/src/LinuxMallocProfilin...
src/LinuxMallocProfiling.cpp:45: // new, new[], and malloc are all defined as
weak symbols to allow them
On 2016/03/17 20:09:05, stichnot wrote:
> reflow comment to 80-col

Done.

https://codereview.chromium.org/1781213002/diff/80001/src/LinuxMallocProfilin...
src/LinuxMallocProfiling.cpp:70: << "Use --threads=0 to enable.\n";
On 2016/03/17 20:09:06, stichnot wrote:
> Tiny nit: omit the last "<<" and take advantage of string literal
concatenation.

Done.

https://codereview.chromium.org/1781213002/diff/80001/src/LinuxMallocProfiling.h
File src/LinuxMallocProfiling.h (right):

https://codereview.chromium.org/1781213002/diff/80001/src/LinuxMallocProfilin...
src/LinuxMallocProfiling.h:19: #include "IceTypes.h"
On 2016/03/17 20:09:06, stichnot wrote:
> Can this be removed?  I don't see anything in this header file that ought to
> depend on IceTypes.h.

Done.

Powered by Google App Engine
This is Rietveld 408576698