summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-10-14 13:54:04 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-10-14 13:54:04 (GMT)
commite505ea74b63394100f47233295f0a1835ffb99c2 (patch)
tree8ed09728aff7763ae0e55226090cfa71a7d419a9 /src/format
parentfc010082fcc5371ff198b5b3321eb81fbe2a6013 (diff)
Refined measures of elapsed time.
Diffstat (limited to 'src/format')
-rw-r--r--src/format/format.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/format/format.c b/src/format/format.c
index ac6b215..de57e4c 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -326,10 +326,14 @@ bool g_binary_format_analyze(GBinFormat *format, wgroup_id_t gid, GtkStatusStack
bool result; /* Bilan à retourner */
GBinFormatClass *class; /* Classe de l'instance */
+ handle_binary_format_analysis(PGA_FORMAT_ANALYSIS_STARTED, format, gid, status);
+
class = G_BIN_FORMAT_GET_CLASS(format);
result = class->analyze(format, gid, status);
+ handle_binary_format_analysis(PGA_FORMAT_ANALYSIS_ENDED, format, gid, status);
+
return result;
}
@@ -470,11 +474,15 @@ void g_binary_format_complete_analysis(GBinFormat *format, wgroup_id_t gid, GtkS
{
GBinFormatClass *class; /* Classe de l'instance */
+ handle_binary_format_analysis(PGA_FORMAT_POST_ANALYSIS_STARTED, format, gid, status);
+
class = G_BIN_FORMAT_GET_CLASS(format);
if (class->complete != NULL)
class->complete(format, gid, status);
+ handle_binary_format_analysis(PGA_FORMAT_POST_ANALYSIS_ENDED, format, gid, status);
+
}