From: "Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
To: Slavomir Kaslev <kaslevs@vmware.com>,
Yordan Karadzhov <ykaradzhov@vmware.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
"linux-trace-devel@vger.kernel.org"
<linux-trace-devel@vger.kernel.org>
Subject: Re: [RFC 7/7] kernel-shark: Add basic example demonstrating the NumPy interface
Date: Fri, 5 Apr 2019 13:10:57 +0300 [thread overview]
Message-ID: <ea1c9156-d6ef-0916-3dce-8bbf6a86ce1b@gmail.com> (raw)
In-Reply-To: <CAE0o1Nuqxs4QarqWnTC_0J2bnR62vSYLMvnSKTxkWGUeZyP3_w@mail.gmail.com>
Hi Slavi,
Thanks a lot for the detailed review of this patch-set!
I am about to send version 2 of NumPy interface patches which tries to
address all the problems that you found.
Please review the new version carefully and be as critical as possible.
Thanks!
Yordan
On 28.03.19 г. 14:47 ч., Slavomir Kaslev wrote:
> On Wed, Mar 27, 2019 at 6:04 PM Yordan Karadzhov <ykaradzhov@vmware.com> wrote:
> [...]
>> diff --git a/kernel-shark/bin/sched_wakeup.py b/kernel-shark/bin/sched_wakeup.py
>
> [...]
>
>> +ks.open_file(fname)
>> +ofst, cpu, evt, pid, ts = ks.load_data()
>
> Returning a tuple of 5 numpy arrays as API will be impossible to
> extend in the future without breaking existing code. It's also easy
> for users to get the order of the return values wrong. Have you
> thought of returning a container object that's holding the numpy
> arrays? Pandas DataFrame[1] comes to mind although I don't know if
> it's worth to take Pandas as dependency for this.
>
> [1] https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.DataFrame.html
>
> -- Slavi
>
prev parent reply other threads:[~2019-04-05 10:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-27 16:03 [RFC 0/7] NumPy Interface for KernelShark Yordan Karadzhov
2019-03-27 16:03 ` [RFC 1/7] kernel-shark: kshark_string_config_alloc() must take no arguments Yordan Karadzhov
2019-03-27 16:19 ` Steven Rostedt
2019-03-27 16:03 ` [RFC 2/7] kernel-shark: Add new dataloading method to be used by the NumPu interface Yordan Karadzhov
2019-03-27 23:41 ` Slavomir Kaslev
2019-03-27 16:03 ` [RFC 3/7] kernel-shark: Prepare for building the NumPy interface Yordan Karadzhov
2019-03-27 16:03 ` [RFC 4/7] kernel-shark: Add the core components of the NumPy API Yordan Karadzhov
2019-03-27 22:53 ` Slavomir Kaslev
2019-03-27 16:03 ` [RFC 5/7] kernel-shark: Add Numpy Interface for processing of tracing data Yordan Karadzhov
2019-03-27 16:03 ` [RFC 6/7] kernel-shark: Add automatic building of the NumPy interface Yordan Karadzhov
2019-03-27 16:03 ` [RFC 7/7] kernel-shark: Add basic example demonstrating " Yordan Karadzhov
2019-03-27 23:25 ` Slavomir Kaslev
2019-03-28 12:47 ` Slavomir Kaslev
2019-04-05 10:10 ` Yordan Karadzhov (VMware) [this message]
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=ea1c9156-d6ef-0916-3dce-8bbf6a86ce1b@gmail.com \
--to=y.karadz@gmail.com \
--cc=kaslevs@vmware.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=ykaradzhov@vmware.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;
as well as URLs for NNTP newsgroup(s).