From: cpthk@hotmail.com (Jeffrey Chen)
Subject: [lttng-dev] String format based events
Date: Thu, 18 Jun 2015 00:49:49 -0700 [thread overview]
Message-ID: <BLU169-W872AF3E2846656BC64AC76ABA50@phx.gbl> (raw)
In-Reply-To: <BLU169-W69F0861B21CA9AE09E8C75ABA60@phx.gbl>
I have a question while reading the lttng documentation. Could anyone answer me? Thanks a lot.
It looks like lttng events are all key-value pairs. Like { my_val1 = 10, my_val2 = "OK" }. Does lttng supports regular string format based events, like Windows ETW. I want a human readable sentences in the event like "My CPU usage is 50 , my memory usage is 100". Of course, I know I could manually construct the string myself and pass the result in one string down to lttng. But, the idea is that, string format is slow. So, Windows ETW does the string formatting only when you read the logs.
For example, if I want to write many "My CPU usage is {0} , my memory usage is {1}" to log. Windows ETW does not write this whole string to log. It only writes the 2 variable values of this trace to the log, and construct back the original string when you are reading the logs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150618/01a889a6/attachment-0001.html>
next prev parent reply other threads:[~2015-06-18 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 23:51 Jeffrey Chen
2015-06-18 7:49 ` Jeffrey Chen [this message]
2015-06-18 13:43 ` Philippe Proulx
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BLU169-W872AF3E2846656BC64AC76ABA50@phx.gbl \
--to=cpthk@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox