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

Issue 1834273002: Add TRACE_EVENT macros to net. (Closed)

Created:
4 years, 8 months ago by ssid
Modified:
4 years, 8 months ago
Reviewers:
cbentzel, nharper, Buck, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add TRACE_EVENT macros to net. This CL adds TRACE_EVENT macros to some of the interesting functions in net which are useful to track memory usage. These are points suggested by statistics from local experiments and improvised by mmenke@. The CL also changes the categories of some existing trace events and cleans up some. Some events are marked under DISABLED_BY_DEFAULT category since there are too many calls and should not crowd default tracing with lot of points. This is chosen based on an average value of trace events in other categories. BUG=598377 Committed: https://crrev.com/6d6b40100156b2dabcc79cf46f9f34f225e21d0a Cr-Commit-Position: refs/heads/master@{#385246}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add events in resource loader and network delegate. #

Patch Set 3 : Re-work #

Total comments: 2

Patch Set 4 : nit. #

Total comments: 8

Patch Set 5 : Rebase and address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -3 lines) Patch
M chrome/browser/net/crl_set_fetcher.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 4 chunks +8 lines, -0 lines 0 comments Download
M net/base/network_delegate.cc View 1 2 9 chunks +17 lines, -0 lines 0 comments Download
M net/base/network_quality_estimator.cc View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M net/cert/crl_set_storage.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/cert/multi_threaded_cert_verifier.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M net/disk_cache/blockfile/in_flight_io.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M net/dns/host_cache.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M net/dns/host_resolver_impl.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing.cc View 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M net/quic/quic_stream_factory.cc View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M net/socket/client_socket_handle.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M net/socket/socket_posix.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_pool.cc View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M net/socket/transport_client_socket_pool.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M net/udp/udp_socket_posix.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (11 generated)
ssid
This CL adds trace events to the functions found to be interesting for memory usage ...
4 years, 8 months ago (2016-03-28 18:57:41 UTC) #2
mmenke
https://codereview.chromium.org/1834273002/diff/1/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1834273002/diff/1/net/http/http_stream_factory_impl_job.cc#newcode528 net/http/http_stream_factory_impl_job.cc:528: TRACE_EVENT0("net", "HttpStreamFactoryImpl::Job::OnCertificateErrorCallback"); How are you planning on using these? ...
4 years, 8 months ago (2016-03-28 20:46:51 UTC) #4
ssid
https://codereview.chromium.org/1834273002/diff/1/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1834273002/diff/1/net/http/http_stream_factory_impl_job.cc#newcode528 net/http/http_stream_factory_impl_job.cc:528: TRACE_EVENT0("net", "HttpStreamFactoryImpl::Job::OnCertificateErrorCallback"); On 2016/03/28 20:46:51, mmenke wrote: > How ...
4 years, 8 months ago (2016-03-29 00:33:06 UTC) #5
mmenke
On 2016/03/29 00:33:06, ssid wrote: > https://codereview.chromium.org/1834273002/diff/1/net/http/http_stream_factory_impl_job.cc > File net/http/http_stream_factory_impl_job.cc (right): > > https://codereview.chromium.org/1834273002/diff/1/net/http/http_stream_factory_impl_job.cc#newcode528 > ...
4 years, 8 months ago (2016-03-30 19:04:32 UTC) #6
ssid
> Sorry for slowness, had a bunch of meetings yesterday. > > Tracepoints I suggest, ...
4 years, 8 months ago (2016-03-31 20:03:09 UTC) #7
mmenke
On 2016/03/31 20:03:09, ssid wrote: > > Sorry for slowness, had a bunch of meetings ...
4 years, 8 months ago (2016-03-31 20:26:00 UTC) #8
ssid
> That doc has some great information - seems like a good starting place. I ...
4 years, 8 months ago (2016-03-31 20:51:13 UTC) #9
mmenke
On 2016/03/31 20:51:13, ssid wrote: > > That doc has some great information - seems ...
4 years, 8 months ago (2016-04-01 17:49:13 UTC) #10
mmenke
Forgot (at least) two: SpdySessionPool::CreateAvailableSessionFromSocket, QuicStreamFactory::CreateSession
4 years, 8 months ago (2016-04-01 17:55:11 UTC) #11
Buck
Hi. I don't have anything to add at this point. The areas of the code ...
4 years, 8 months ago (2016-04-01 20:52:45 UTC) #12
Buck
lgtm
4 years, 8 months ago (2016-04-01 20:53:10 UTC) #13
Buck
lgtm
4 years, 8 months ago (2016-04-01 20:53:12 UTC) #14
ssid
I have added in all locations that I found useful based on your suggestions and ...
4 years, 8 months ago (2016-04-02 01:59:24 UTC) #17
mmenke
LGTM https://codereview.chromium.org/1834273002/diff/80001/chrome/browser/net/crl_set_fetcher.cc File chrome/browser/net/crl_set_fetcher.cc (right): https://codereview.chromium.org/1834273002/diff/80001/chrome/browser/net/crl_set_fetcher.cc#newcode89 chrome/browser/net/crl_set_fetcher.cc:89: TRACE_EVENT0("net", "CRLSetFetcher::LoadFromDisk"); On 2016/04/02 01:59:24, ssid wrote: > ...
4 years, 8 months ago (2016-04-04 16:45:49 UTC) #18
ssid
Thanks a lot for your help! https://codereview.chromium.org/1834273002/diff/100001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1834273002/diff/100001/content/browser/loader/resource_loader.cc#newcode478 content/browser/loader/resource_loader.cc:478: FROM_HERE, base::Bind(&ResourceLoader::ResponseCompleted, On ...
4 years, 8 months ago (2016-04-05 00:50:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834273002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834273002/120001
4 years, 8 months ago (2016-04-05 05:12:09 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_TIMED_OUT, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/48218)
4 years, 8 months ago (2016-04-05 06:50:06 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834273002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834273002/120001
4 years, 8 months ago (2016-04-05 17:50:19 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 8 months ago (2016-04-05 19:00:07 UTC) #28
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 19:01:15 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6d6b40100156b2dabcc79cf46f9f34f225e21d0a
Cr-Commit-Position: refs/heads/master@{#385246}

Powered by Google App Engine
This is Rietveld 408576698