Repository: trafficserver Updated Branches: refs/heads/master da0436222 -> eb4fafeb5
TS-3745: Add UA_FIRST_READ milestone to API enum. Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/eb4fafeb Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/eb4fafeb Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/eb4fafeb Branch: refs/heads/master Commit: eb4fafeb5ce46b9702a4d3f4d1873348e0d7d0be Parents: da04362 Author: Alan M. Carroll <[email protected]> Authored: Wed Jul 8 11:04:53 2015 -0500 Committer: Alan M. Carroll <[email protected]> Committed: Wed Jul 8 11:04:53 2015 -0500 ---------------------------------------------------------------------- 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/eb4fafeb/lib/ts/apidefs.h.in ---------------------------------------------------------------------- diff --git a/lib/ts/apidefs.h.in b/lib/ts/apidefs.h.in index dca1ff5..5058990 100644 --- a/lib/ts/apidefs.h.in +++ b/lib/ts/apidefs.h.in @@ -698,6 +698,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/eb4fafeb/plugins/experimental/xdebug/xdebug.cc ---------------------------------------------------------------------- diff --git a/plugins/experimental/xdebug/xdebug.cc b/plugins/experimental/xdebug/xdebug.cc index ce60244..a22d832 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"}, };
