commit b7b5d5db45246a64a8fe55fdcbda9f9740e55304
parent 6e281d02e51262d52f4ffec25e5958543495708e
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Tue, 27 Feb 2018 14:05:35 +0100
Remove some logs on exec. time.
Diffstat:
1 file changed, 0 insertions(+), 61 deletions(-)
diff --git a/src/senc_scene_analyze.c b/src/senc_scene_analyze.c
@@ -1024,8 +1024,6 @@ error_:
return res;
}
-#include <rsys/clock_time.h>
-
/*******************************************************************************
* Exported functions
******************************************************************************/
@@ -1050,21 +1048,6 @@ senc_scene_analyze(struct senc_scene* scn, struct senc_descriptor** out_desc)
/* Array of triangle sides. */
struct trgside* trgsides = NULL;
-
-
-
-
- struct time t0, t1, t0_;
- char dump[64];
-
- time_current(&t0);
- t0_ = t0;
-
-
-
-
-
-
if(!scn || !out_desc) return RES_BAD_ARG;
desc = descriptor_create(scn);
@@ -1095,14 +1078,6 @@ senc_scene_analyze(struct senc_scene* scn, struct senc_descriptor** out_desc)
goto error;
}
-
- time_sub(&t0, time_current(&t1), &t0);
- time_dump(&t0, TIME_MSEC | TIME_SEC | TIME_MIN, NULL, dump, sizeof(dump));
- printf("collect_and_link_neighbours: %s\n", dump);
- time_current(&t0);
-
-
-
darray_cc_descriptor_init(scn->dev->allocator, &connex_components);
connex_components_initialized = 1;
darray_triangle_comp_init(scn->dev->allocator, &triangles_comp);
@@ -1121,15 +1096,6 @@ senc_scene_analyze(struct senc_scene* scn, struct senc_descriptor** out_desc)
darray_triangle_tmp_release(&triangles_tmp);
triangles_tmp_initialized = 0;
-
-
- time_sub(&t0, time_current(&t1), &t0);
- time_dump(&t0, TIME_MSEC | TIME_SEC | TIME_MIN, NULL, dump, sizeof(dump));
- printf("extract_connex_components: %s\n", dump);
- time_current(&t0);
-
-
-
/* Step 3: group components */
res = group_connex_components(desc, trgsides, &triangles_comp,
&connex_components);
@@ -1142,15 +1108,6 @@ senc_scene_analyze(struct senc_scene* scn, struct senc_descriptor** out_desc)
darray_triangle_comp_release(&triangles_comp);
triangles_comp_initialized = 0;
-
-
- time_sub(&t0, time_current(&t1), &t0);
- time_dump(&t0, TIME_MSEC | TIME_SEC | TIME_MIN, NULL, dump, sizeof(dump));
- printf("group_connex_components: %s\n", dump);
- time_current(&t0);
-
-
-
/* Build result. */
res = build_result(desc, &connex_components);
if(res != RES_OK) {
@@ -1158,15 +1115,6 @@ senc_scene_analyze(struct senc_scene* scn, struct senc_descriptor** out_desc)
goto error;
}
-
-
- time_sub(&t0, time_current(&t1), &t0);
- time_dump(&t0, TIME_MSEC | TIME_SEC | TIME_MIN, NULL, dump, sizeof(dump));
- printf("build_result: %s\n", dump);
- time_current(&t0);
-
-
-
exit:
if(connex_components_initialized)
darray_cc_descriptor_release(&connex_components);
@@ -1177,15 +1125,6 @@ exit:
if(trgsides) MEM_RM(scn->dev->allocator, trgsides);
if(desc) *out_desc = desc;
-
-
- time_sub(&t0_, time_current(&t1), &t0_);
- time_dump(&t0_, TIME_MSEC | TIME_SEC | TIME_MIN, NULL, dump, sizeof(dump));
- printf("Total analyse: %s\n", dump);
- time_current(&t0);
-
-
-
return res;
error:
if(desc) SENC(descriptor_ref_put(desc));