-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc: Instrumenting MPE logs #118
Comments
I have been trying to work on this, and my code seems to be running smoothly (producing MPE logs corresponding to my app functions, or whatever code segment I like).
Now, in my regular code, I can trace events of interest in my code by calling these functions as desired. Here is a simplistic example:
|
This is a great idea. Do you mind if I make this part of the Swift/T standard library? Did you see Turbine's export/mpe.swift and lib/mpe.tcl features? Those are for adding arbitrary data into the MPE log. |
Thank you, please do. I'm happy this is moving in the right direction. I tried to mimic the code found in the My take on the |
This is a bummer, but I need to report back. However, when I run the
This gets even trickier when I attempt to visualize the file using jumpshot, as either one or both of my desired stages disappear from the key. This behavior has been inconsistent when running the same piece of code several times. The screen-shots below were taken upon running the same pipeline twice consecutively. Each shows only one desired stage: In comparison, the I would really appreciate any pointer you could provide to move forward. Thank you in advance, |
Thank you for providing the supporting MPE functions and documentation. These are very helpful indeed.
I'm not sure if github comments to a closed issue generate notifications, so I'm re-posting some questions relating to issue #115 in this thread.
The questions:
I'm more interested in having the log file include a reference to leaf function calls, as it would be really useful to know where and how each leaf function is being executed and so on. Looking at the code (and the output from
list-events.x
), I'm concluding only solo events are reported in the log (in addition to other ADLB calls); and this is achieved via the standard librarymetadata
function. This gives an entry namedmetadata
in the log file, but is not really helpful in drawing much insight about pipeline run details. Therefore, my first question is: Is there a reason why only solo events are currently implemented, or am I missing some point here?My thinking to add more details is to instrument the MPE log, by specifying the apps/leaf functions start and end time as events and betwen them as states, and then proceed. In a typical C-program, this would involve calls to the functions below:
But, given the wrapper functions defined in the
mpe
namespace, I think it is possible to make use of the mapping below between swift/t functions (to the left) and c functions (to the right):Would this be a reasonable way to proceed? I really appreciate any kind of pointer you would be able to provide.
Thank you in advance,
Azza
The text was updated successfully, but these errors were encountered: