Class/trigger analysis/graph/tree for Log Analyzer

Issue #1402 new
Justin Julicher created an issue

The execution tree in the log analyzer is fantastic but it would be great if it would be at all possible to have some statistics presented in a slightly different way.

  1. For each class display total execution time and total number of calls.
  2. On click of #1 have an option to list all the points in the log and perhaps show a cleaned tree (from the start to the entry) and branches thereafter.
  3. On drill down of #1 display total execution of methods and number of calls in each method.
  4. do the same as #2 on #3.
  5. For each call of #2 show a mini execution tree from the start of the last Trigger Execution to the end of the tree.
  6. Any other meaningful stat that you might think of 🙂.

The purpose is to be able to optimize the code in a meaningful way. Especially for older org’s where there might be multiple triggers (we have one object with 20 triggers ! ). So being able to tell which Trigger would benefit the most from being put in a framework would be quite beneficial.

I’m guessing this would be a very complex undertaking and require quite a bit of computation and iteration over the execution tree.

I’m not even sure if this makes any sense so probably needs quite a bit of refinement.

Comments (4)

  1. Scott Wells repo owner

    Good suggestion, Justin. I've definitely been thinking about various ways to roll up information in the log analyzer to get to real root cause analysis more quickly. This sounds like a good option. Another one I'm considering is stack backtraces hanging off of the cumulative results so when you see that, e.g., a given SOQL query was executed 75 times, you can see all backtraces to the code that executed it. Similar with method invocations, etc. I'll definitely keep this on the burner for when I turn my attention back to log analyzer views.

  2. Justin Julicher reporter

    Thanks @Scott Wells

    there’s a good app that analyses logs on the app exchange that gives a hotspot cumlative bar graph view of each branch of the execution tree along a timeline (kind of like what the IC tree is like but on a horizontal axis) which has helped previously in analysing logs.

  3. Log in to comment