diff options
author | Brendan Jackman <brendan.jackman@arm.com> | 2017-09-27 11:21:54 +0100 |
---|---|---|
committer | Michele Di Giorgio <michele.dg90@gmail.com> | 2017-10-17 12:06:15 +0100 |
commit | 886f62065f608fa1e1e5c5f38abb15ae6b35473f (patch) | |
tree | 44591d676c297f1d1d9177302f537d196149f38a | |
parent | ca7734fba49a5d9de469fcd26a955d545f0f9377 (diff) | |
download | lisa-886f62065f608fa1e1e5c5f38abb15ae6b35473f.tar.gz |
trace: Drop NaNs from CPU active signal in getClusterActiveSignal
Some CPUs' active signals may begin earlier than others. In that
case, despite the fillna, we may still have NaNs, which break the
reduce() call. Therefore just drop rows with NaNs.
-rw-r--r-- | libs/utils/trace.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/utils/trace.py b/libs/utils/trace.py index 93a379e..c7adabd 100644 --- a/libs/utils/trace.py +++ b/libs/utils/trace.py @@ -847,6 +847,10 @@ class Trace(object): ) active.fillna(method='ffill', inplace=True) + # There might be NaNs in the signal where we got data from some CPUs + # before others. That will break the .astype(int) below, so drop rows + # with NaN in them. + active.dropna(inplace=True) # Cluster active is the OR between the actives on each CPU # belonging to that specific cluster |