summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/function.cpp b/function.cpp
index d4f91db1..b570499c 100644
--- a/function.cpp
+++ b/function.cpp
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2016 Vector 35 LLC
+// Copyright (c) 2015-2017 Vector 35 LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
@@ -861,6 +861,19 @@ void Function::ReleaseAdvancedAnalysisData()
}
+map<string, double> Function::GetAnalysisPerformanceInfo()
+{
+ size_t count;
+ BNPerformanceInfo* info = BNGetFunctionAnalysisPerformanceInfo(m_object, &count);
+
+ map<string, double> result;
+ for (size_t i = 0; i < count; i++)
+ result[info[i].name] = info[i].seconds;
+ BNFreeAnalysisPerformanceInfo(info, count);
+ return result;
+}
+
+
AdvancedFunctionAnalysisDataRequestor::AdvancedFunctionAnalysisDataRequestor(Function* func): m_func(func)
{
if (m_func)