From e3e72737692abf2a0b7e65362a6b62b9c4a91ea9 Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Tue, 9 May 2017 16:57:25 +0100 Subject: [PATCH] latency_analysis: Add comment to clarify code I didn't understand this line of code, hopefully this comment will help next time I read it. --- libs/utils/analysis/latency_analysis.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/utils/analysis/latency_analysis.py b/libs/utils/analysis/latency_analysis.py index a52d08f69..d0464c471 100644 --- a/libs/utils/analysis/latency_analysis.py +++ b/libs/utils/analysis/latency_analysis.py @@ -109,6 +109,8 @@ class LatencyAnalysis(AnalysisModule): task_switches_df.rename(columns={'prev_state' : 'curr_state'}, inplace=True) # Fill in Running status + # We've just set curr_state (a.k.a prev_state) to nan where td.pid was + # switching in, so set the state to 'A' ("active") in those places. task_switches_df.curr_state = task_switches_df.curr_state.fillna(value='A') # Join Wakeup and SchedSwitch events -- GitLab