Skip to content

common: event trace lttng enhancement#14353

Closed
rchagam wants to merge 1 commit into
ceph:masterfrom
rchagam:event_trace_enhancements
Closed

common: event trace lttng enhancement#14353
rchagam wants to merge 1 commit into
ceph:masterfrom
rchagam:event_trace_enhancements

Conversation

@rchagam
Copy link
Copy Markdown
Contributor

@rchagam rchagam commented Apr 5, 2017

Added event_elapsed event to track function latency and optionally publish function
latency as perf counter for scale testing latency analysis

Signed-off-by: Anjaneya Chagam anjaneya.chagam@intel.com

publish function latencies as perf counters for large scale testing
latency analysis

Signed-off-by: Anjaneya Chagam <anjaneya.chagam@intel.com>
@liewegas liewegas changed the title event trace lttng enhancement common: event trace lttng enhancement Apr 25, 2017
Comment thread src/common/EventTrace.cc
m_func_enter_ts = m_last_event_ts = ceph_clock_now();
if (unlikely(!init(m_cct))) return;
lsubdout(m_cct, eventtrace, LOG_LEVEL) << "ENTRY (" << m_func << ") " << m_file << ":" << m_line << dendl;
tracepoint(eventtrace, func_enter, m_file.c_str(), m_func.c_str(), m_line);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How well does this work? I would worry that the ceph_clock_now in ctor and dtor overhead might be significant, and that the m_counters map lookup would be slow. Also, do we want to fill in the timestamps when the perf_counters option isn't enabled?

Comment thread src/common/EventTrace.cc
if (unlikely(!tpinit)) {
TracepointProvider::initialize<event_tracepoint_traits>(_ctx);
tpinit = true;
// we will only check once and if passed context doesn't have _conf
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rchagam It would be good if we can use does not instead of doesn't

Comment thread src/common/EventTrace.cc
void EventTrace::log_perf_counter(const char *event, double usecs)
{
assert (m_logger != NULL);
// this function gets called once m_counters is initialized completely
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rchagam Also I believe it would be good to keep multiline comments in /* */

@stale
Copy link
Copy Markdown

stale Bot commented Oct 18, 2018

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you are a maintainer or core committer, please follow-up on this issue to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@stale stale Bot added the stale label Oct 18, 2018
@gregsfortytwo
Copy link
Copy Markdown
Member

Since this PR no longer merges and we have plans for lttng and logging, I am closing this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants