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

Unified Diff: tools/render_pdfs_main.cpp

Issue 448243003: Revert of Process Statistics header, add max RSS to render_pdfs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/ProcStats.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/render_pdfs_main.cpp
diff --git a/tools/render_pdfs_main.cpp b/tools/render_pdfs_main.cpp
index 34e5e58f53d0eac4949c4e236f02b3e5c47e9133..be294399ec24e576ec46f5be1f35ad43780dcc42 100644
--- a/tools/render_pdfs_main.cpp
+++ b/tools/render_pdfs_main.cpp
@@ -18,7 +18,6 @@
#include "SkTArray.h"
#include "SkTSort.h"
#include "PdfRenderer.h"
-#include "ProcStats.h"
#include "picture_utils.h"
__SK_FORCE_IMAGE_DECODER_LINKING;
@@ -220,9 +219,7 @@
}
}
}
- if (files.count() > 0) {
- SkTQSort<SkString>(files.begin(), files.end() - 1);
- }
+ SkTQSort<SkString>(files.begin(), files.end() - 1);
int failures = 0;
for (int i = 0; i < files.count(); i ++) {
if (!render_pdf(files[i], outputDir, renderer)) {
@@ -249,11 +246,6 @@
int failures = process_input(FLAGS_inputPaths, outputDir, *renderer);
- int max_rss_kb = sk_tools::getMaxResidentSetSizeKB();
- if (max_rss_kb >= 0) {
- SkDebugf("%4dM peak ResidentSetSize\n", max_rss_kb / 1024);
- }
-
if (failures != 0) {
SkDebugf("Failed to render %i PDFs.\n", failures);
return 1;
« no previous file with comments | « tools/ProcStats.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698