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

Issue 21302005: Add CurrentProcessInfo::CreationTime() for Linux (Closed)

Created:
7 years, 4 months ago by James Simonsen
Modified:
7 years, 4 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Add CurrentProcessInfo::CreationTime() for Linux This is used to measure startup performance. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216409

Patch Set 1 #

Total comments: 3

Patch Set 2 : Read from stat files #

Total comments: 2

Patch Set 3 : Remove singleton #

Patch Set 4 : Fix mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -72 lines) Patch
M base/base.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M base/process/internal_linux.h View 1 3 chunks +11 lines, -0 lines 0 comments Download
M base/process/internal_linux.cc View 1 5 chunks +52 lines, -4 lines 0 comments Download
M base/process/process_info.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
A base/process/process_info_linux.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M base/process/process_info_mac.cc View 1 2 3 1 chunk +6 lines, -18 lines 0 comments Download
M base/process/process_info_win.cc View 1 2 1 chunk +5 lines, -17 lines 0 comments Download
M base/process/process_metrics_linux.cc View 1 2 chunks +4 lines, -12 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/chrome_process_finder_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_service.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 1 chunk +6 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
James Simonsen
7 years, 4 months ago (2013-07-31 02:52:03 UTC) #1
willchan no longer on Chromium
jln/markus: can you advise on whether there's a better way to do this on Linux ...
7 years, 4 months ago (2013-07-31 05:01:07 UTC) #2
Markus (顧孟勤)
Stat on /proc/self is the best option that I can think of -- of course, ...
7 years, 4 months ago (2013-07-31 06:04:55 UTC) #3
jln (very slow on Chromium)
On 2013/07/31 06:04:55, Markus (顧孟勤) wrote: > Stat on /proc/self is the best option that ...
7 years, 4 months ago (2013-07-31 20:10:54 UTC) #4
Markus (顧孟勤)
It probably doesn't really much either way. But do you honestly believe that the timestamp ...
7 years, 4 months ago (2013-07-31 20:17:04 UTC) #5
jln (very slow on Chromium)
On 2013/07/31 20:17:04, Markus (顧孟勤) wrote: > It probably doesn't really much either way. > ...
7 years, 4 months ago (2013-07-31 20:28:26 UTC) #6
James Simonsen
On 2013/07/31 20:10:54, Julien Tinnes wrote: > On 2013/07/31 06:04:55, Markus (顧孟勤) wrote: > > ...
7 years, 4 months ago (2013-08-02 01:31:40 UTC) #7
willchan no longer on Chromium
LGTM https://codereview.chromium.org/21302005/diff/1/base/process/process_info_linux.cc File base/process/process_info_linux.cc (right): https://codereview.chromium.org/21302005/diff/1/base/process/process_info_linux.cc#newcode25 base/process/process_info_linux.cc:25: return new Time(Time::FromTimeT(result.st_ctime)); On 2013/08/02 01:31:40, James Simonsen ...
7 years, 4 months ago (2013-08-02 05:51:52 UTC) #8
James Simonsen
Julien or Markus, do you have any further comments on the /proc/pid/stat implementation?
7 years, 4 months ago (2013-08-06 17:12:19 UTC) #9
jln (very slow on Chromium)
https://codereview.chromium.org/21302005/diff/9001/base/process/process_info_linux.cc File base/process/process_info_linux.cc (right): https://codereview.chromium.org/21302005/diff/9001/base/process/process_info_linux.cc#newcode33 base/process/process_info_linux.cc:33: static Time* process_creation_time = ProcessCreationTimeInternal(); This caching seems a ...
7 years, 4 months ago (2013-08-06 18:57:29 UTC) #10
James Simonsen
https://codereview.chromium.org/21302005/diff/9001/base/process/process_info_linux.cc File base/process/process_info_linux.cc (right): https://codereview.chromium.org/21302005/diff/9001/base/process/process_info_linux.cc#newcode33 base/process/process_info_linux.cc:33: static Time* process_creation_time = ProcessCreationTimeInternal(); On 2013/08/06 18:57:29, Julien ...
7 years, 4 months ago (2013-08-06 19:09:07 UTC) #11
James Simonsen
Okay, I changed the API to not use the singleton any more.
7 years, 4 months ago (2013-08-06 23:08:51 UTC) #12
jln (very slow on Chromium)
On 2013/08/06 23:08:51, James Simonsen wrote: > Okay, I changed the API to not use ...
7 years, 4 months ago (2013-08-06 23:44:30 UTC) #13
James Simonsen
John, can I get a rubberstamp for chrome/?
7 years, 4 months ago (2013-08-07 18:46:35 UTC) #14
jam
lgtm
7 years, 4 months ago (2013-08-07 21:18:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonjam@chromium.org/21302005/24001
7 years, 4 months ago (2013-08-07 21:24:25 UTC) #16
commit-bot: I haz the power
7 years, 4 months ago (2013-08-08 17:24:28 UTC) #17
Message was sent while issue was closed.
Change committed as 216409

Powered by Google App Engine
This is Rietveld 408576698