Repository: trafficserver Updated Branches: refs/heads/6.0.x bb998134e -> 48609b5e7
TS-3745: Add UA_FIRST_READ milestone to API enum. (cherry picked from commit eb4fafeb5ce46b9702a4d3f4d1873348e0d7d0be) Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/48609b5e Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/48609b5e Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/48609b5e Branch: refs/heads/6.0.x Commit: 48609b5e70c538252c21d3a5185e55566194cde0 Parents: bb99813 Author: Alan M. Carroll <[email protected]> Authored: Wed Jul 8 11:04:53 2015 -0500 Committer: Bryan Call <[email protected]> Committed: Wed Jul 8 10:30:31 2015 -0700 ---------------------------------------------------------------------- lib/ts/apidefs.h.in | 1 + plugins/experimental/xdebug/xdebug.cc | 5 +++++ 2 files changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/48609b5e/lib/ts/apidefs.h.in ---------------------------------------------------------------------- diff --git a/lib/ts/apidefs.h.in b/lib/ts/apidefs.h.in index aa510ff..e97a384 100644 --- a/lib/ts/apidefs.h.in +++ b/lib/ts/apidefs.h.in @@ -697,6 +697,7 @@ typedef int64_t TSHRTime; typedef enum { TS_MILESTONE_NULL = -1, TS_MILESTONE_UA_BEGIN, + TS_MILESTONE_UA_FIRST_READ, TS_MILESTONE_UA_READ_HEADER_DONE, TS_MILESTONE_UA_BEGIN_WRITE, TS_MILESTONE_UA_CLOSE, http://git-wip-us.apache.org/repos/asf/trafficserver/blob/48609b5e/plugins/experimental/xdebug/xdebug.cc ---------------------------------------------------------------------- diff --git a/plugins/experimental/xdebug/xdebug.cc b/plugins/experimental/xdebug/xdebug.cc index 9adcd73..2555779 100644 --- a/plugins/experimental/xdebug/xdebug.cc +++ b/plugins/experimental/xdebug/xdebug.cc @@ -169,8 +169,10 @@ InjectMilestonesHeader(TSHttpTxn txn, TSMBuffer buffer, TSMLoc hdr) // this hook, so we skip those ... static const milestone milestones[] = { {TS_MILESTONE_UA_BEGIN, "UA-BEGIN"}, + {TS_MILESTONE_UA_FIRST_READ, "UA-FIRST-READ"}, {TS_MILESTONE_UA_READ_HEADER_DONE, "UA-READ-HEADER-DONE"}, {TS_MILESTONE_UA_BEGIN_WRITE, "UA-BEGIN-WRITE"}, + {TS_MILESTONE_UA_CLOSE, "UA-CLOSE"}, {TS_MILESTONE_SERVER_FIRST_CONNECT, "SERVER-FIRST-CONNECT"}, {TS_MILESTONE_SERVER_CONNECT, "SERVER-CONNECT"}, {TS_MILESTONE_SERVER_CONNECT_END, "SERVER-CONNECT-END"}, @@ -184,6 +186,9 @@ InjectMilestonesHeader(TSHttpTxn txn, TSMBuffer buffer, TSMLoc hdr) {TS_MILESTONE_CACHE_OPEN_WRITE_END, "CACHE-OPEN-WRITE-END"}, {TS_MILESTONE_DNS_LOOKUP_BEGIN, "DNS-LOOKUP-BEGIN"}, {TS_MILESTONE_DNS_LOOKUP_END, "DNS-LOOKUP-END"}, + // SM_START is deliberately excluded because as all the times are printed relative to it + // it would always be zero. + {TS_MILESTONE_SM_FINISH, "SM-FINISH"}, {TS_MILESTONE_PLUGIN_ACTIVE, "PLUGIN-ACTIVE"}, {TS_MILESTONE_PLUGIN_TOTAL, "PLUGIN-TOTAL"}, };
