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

Side by Side Diff: proto/dom_distiller.proto

Issue 499623002: Instrument DomDistiller with timing information. (Closed) Base URL: https://code.google.com/p/dom-distiller/@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/com/dom_distiller/client/ContentExtractor.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 package dom_distiller.proto; 7 package dom_distiller.proto;
8 option optimize_for = LITE_RUNTIME; 8 option optimize_for = LITE_RUNTIME;
9 option java_package = "com.dom_distiller.proto"; 9 option java_package = "com.dom_distiller.proto";
10 option java_outer_classname = "DomDistillerProtos"; 10 option java_outer_classname = "DomDistillerProtos";
(...skipping 30 matching lines...) Expand all
41 optional string type = 2; 41 optional string type = 2;
42 optional string url = 3; 42 optional string url = 3;
43 optional string description = 4; 43 optional string description = 4;
44 optional string publisher = 5; 44 optional string publisher = 5;
45 optional string copyright = 6; 45 optional string copyright = 6;
46 optional string author = 7; 46 optional string author = 7;
47 optional MarkupArticle article = 8; 47 optional MarkupArticle article = 8;
48 repeated MarkupImage images = 9; 48 repeated MarkupImage images = 9;
49 } 49 }
50 50
51 message TimingInfo {
52 optional double markup_parsing_time = 1;
53 optional double document_construction_time = 2;
54 optional double article_processing_time = 3;
55 optional double formatting_time = 4;
56 optional double total_time = 5;
57 }
58
51 message DomDistillerResult { 59 message DomDistillerResult {
52 optional string title = 1; 60 optional string title = 1;
53 optional DistilledContent distilled_content = 2; 61 optional DistilledContent distilled_content = 2;
54 optional PaginationInfo pagination_info = 3; 62 optional PaginationInfo pagination_info = 3;
55 repeated string image_urls = 4; 63 repeated string image_urls = 4;
56 optional MarkupInfo markup_info = 5; 64 optional MarkupInfo markup_info = 5;
65 optional TimingInfo timing_info = 6;
57 } 66 }
58 67
59 message DomDistillerOptions { 68 message DomDistillerOptions {
60 // Whether to extract only the text (or to include the containing html). 69 // Whether to extract only the text (or to include the containing html).
61 optional bool extract_text_only = 1; 70 optional bool extract_text_only = 1;
62 71
63 // How much debug output to dump to window.console. 72 // How much debug output to dump to window.console.
64 // (0): Logs nothing 73 // (0): Logs nothing
65 // (1): Text Node data for each stage of processing 74 // (1): Text Node data for each stage of processing
66 // (2): (1) and some node visibility information 75 // (2): (1) and some node visibility information
67 // (3): (2) and extracted paging information 76 // (3): (2) and extracted paging information
68 optional int32 debug_level = 2; 77 optional int32 debug_level = 2;
69 } 78 }
OLDNEW
« no previous file with comments | « no previous file | src/com/dom_distiller/client/ContentExtractor.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698