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

Issue 1830473002: Speedup function profile by using a hash table instead of a linear scan (Closed)

Created:
4 years, 9 months ago by Cutch
Modified:
4 years, 9 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Speedup function profile by using a hash table instead of a linear scan BUG= R=iposva@google.com Committed: https://github.com/dart-lang/sdk/commit/e389ab73d39e143fc90bbea834662e9229971301

Patch Set 1 #

Patch Set 2 : self review #

Total comments: 6

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -32 lines) Patch
M runtime/vm/flag_list.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/profiler_service.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/profiler_service.cc View 1 2 11 chunks +35 lines, -30 lines 1 comment Download

Messages

Total messages: 9 (3 generated)
Cutch
4 years, 9 months ago (2016-03-23 14:09:11 UTC) #3
Ivan Posva
LGTM with comments addressed. -Ivan https://codereview.chromium.org/1830473002/diff/20001/runtime/vm/profiler_service.cc File runtime/vm/profiler_service.cc (right): https://codereview.chromium.org/1830473002/diff/20001/runtime/vm/profiler_service.cc#newcode22 runtime/vm/profiler_service.cc:22: DEFINE_FLAG(bool, trace_profiler, false, "Trace ...
4 years, 9 months ago (2016-03-23 15:14:40 UTC) #4
Cutch
This change takes profile fetch time in Observatory for sra's reproduction from 42 seconds to ...
4 years, 9 months ago (2016-03-23 19:02:42 UTC) #5
Cutch
https://codereview.chromium.org/1830473002/diff/20001/runtime/vm/profiler_service.cc File runtime/vm/profiler_service.cc (right): https://codereview.chromium.org/1830473002/diff/20001/runtime/vm/profiler_service.cc#newcode22 runtime/vm/profiler_service.cc:22: DEFINE_FLAG(bool, trace_profiler, false, "Trace profiler."); On 2016/03/23 15:14:39, Ivan ...
4 years, 9 months ago (2016-03-23 19:34:22 UTC) #6
Cutch
Committed patchset #3 (id:40001) manually as e389ab73d39e143fc90bbea834662e9229971301 (presubmit successful).
4 years, 9 months ago (2016-03-23 19:36:03 UTC) #8
Ivan Posva
4 years, 9 months ago (2016-03-24 22:21:29 UTC) #9
Message was sent while issue was closed.
Thanks!

Small observation about handle allocation...

-Ivan

https://codereview.chromium.org/1830473002/diff/40001/runtime/vm/profiler_ser...
File runtime/vm/profiler_service.cc (right):

https://codereview.chromium.org/1830473002/diff/40001/runtime/vm/profiler_ser...
runtime/vm/profiler_service.cc:2403: const Function& function =
Function::Handle(func->function()->raw());
Why do you need to allocate a new Function::Handle here?

Powered by Google App Engine
This is Rietveld 408576698