Skip to content

Aggregate metrics according to their language #163

@Luni-4

Description

@Luni-4

It would be helpful to aggregate metrics produced by rust-code-analysis on different files in a single global file. The aggregation should be done according to the languages contained in a determined directory.
To do so, a possible approach with threads could be the following one:

Each thread computes the metrics for a single file and then sends the result to a handler which implements a specific trait called HandlerTrait.

HandlerTrait contains two functions:

  • merge is called by each thread at the end of its execution and adds the result of each thread to a global vector called Vec
  • finalize instead is called when each thread has finished to be run and dumps the content of Vec in the required format

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions