Skip to content

#2302: perfData: Initialize counters once at construction

Codacy Production / Codacy Static Code Analysis required action Sep 17, 2024 in 0s

7 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 7
           

Clones added
============
- examples/collection/manzano.h  1
- examples/collection/do_flops_perf.cc  8
- examples/collection/do_flops_papi.cc  8
- src/vt/metrics/example_events.h  1
         

See the complete overview on Codacy

Annotations

Check warning on line 117 in ci/build_cpp.sh

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

ci/build_cpp.sh#L117

Double quote to prevent globbing and word splitting.

Check notice on line 84 in examples/collection/do_flops_papi.cc

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

examples/collection/do_flops_papi.cc#L84

C-style pointer casting

Check notice on line 181 in examples/collection/do_flops_papi.cc

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

examples/collection/do_flops_papi.cc#L181

Struct 'VecMsg' has a constructor with 1 argument that is not explicit.

Check notice on line 85 in examples/collection/do_flops_perf.cc

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

examples/collection/do_flops_perf.cc#L85

C-style pointer casting

Check notice on line 182 in examples/collection/do_flops_perf.cc

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

examples/collection/do_flops_perf.cc#L182

Struct 'VecMsg' has a constructor with 1 argument that is not explicit.

Check warning on line 50 in src/vt/metrics/perf_data.cc

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/vt/metrics/perf_data.cc#L50

Variable 'event_map_' is assigned in constructor body. Consider performing initialization in initialization list.

Check notice on line 144 in src/vt/metrics/perf_data.cc

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/vt/metrics/perf_data.cc#L144

Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20).