Remove "_internal" from the metric family names. (#1237)

As discussed and requested in #1218, this PR removes the substring "_internal" from all the metric family names.
master
Arno Fleck 2018-07-07 00:20:20 +02:00 committed by Wally B. Feed
parent 044f53735c
commit 8b2c755a13
5 changed files with 19 additions and 21 deletions

View File

@ -317,24 +317,24 @@ void LocalTrajectoryBuilder2D::InitializeExtrapolator(const common::Time time) {
void LocalTrajectoryBuilder2D::RegisterMetrics( void LocalTrajectoryBuilder2D::RegisterMetrics(
metrics::FamilyFactory* family_factory) { metrics::FamilyFactory* family_factory) {
auto* latency = family_factory->NewGaugeFamily( auto* latency = family_factory->NewGaugeFamily(
"mapping_internal_2d_local_trajectory_builder_latency", "mapping_2d_local_trajectory_builder_latency",
"Duration from first incoming point cloud in accumulation to local slam " "Duration from first incoming point cloud in accumulation to local slam "
"result"); "result");
kLocalSlamLatencyMetric = latency->Add({}); kLocalSlamLatencyMetric = latency->Add({});
auto score_boundaries = metrics::Histogram::FixedWidth(0.05, 20); auto score_boundaries = metrics::Histogram::FixedWidth(0.05, 20);
auto* scores = family_factory->NewHistogramFamily( auto* scores = family_factory->NewHistogramFamily(
"mapping_internal_2d_local_trajectory_builder_scores", "mapping_2d_local_trajectory_builder_scores", "Local scan matcher scores",
"Local scan matcher scores", score_boundaries); score_boundaries);
kFastCorrelativeScanMatcherScoreMetric = kFastCorrelativeScanMatcherScoreMetric =
scores->Add({{"scan_matcher", "fast_correlative"}}); scores->Add({{"scan_matcher", "fast_correlative"}});
auto cost_boundaries = metrics::Histogram::ScaledPowersOf(2, 0.01, 100); auto cost_boundaries = metrics::Histogram::ScaledPowersOf(2, 0.01, 100);
auto* costs = family_factory->NewHistogramFamily( auto* costs = family_factory->NewHistogramFamily(
"mapping_internal_2d_local_trajectory_builder_costs", "mapping_2d_local_trajectory_builder_costs", "Local scan matcher costs",
"Local scan matcher costs", cost_boundaries); cost_boundaries);
kCeresScanMatcherCostMetric = costs->Add({{"scan_matcher", "ceres"}}); kCeresScanMatcherCostMetric = costs->Add({{"scan_matcher", "ceres"}});
auto distance_boundaries = metrics::Histogram::ScaledPowersOf(2, 0.01, 10); auto distance_boundaries = metrics::Histogram::ScaledPowersOf(2, 0.01, 10);
auto* residuals = family_factory->NewHistogramFamily( auto* residuals = family_factory->NewHistogramFamily(
"mapping_internal_2d_local_trajectory_builder_residuals", "mapping_2d_local_trajectory_builder_residuals",
"Local scan matcher residuals", distance_boundaries); "Local scan matcher residuals", distance_boundaries);
kScanMatcherResidualDistanceMetric = kScanMatcherResidualDistanceMetric =
residuals->Add({{"component", "distance"}}); residuals->Add({{"component", "distance"}});

View File

@ -301,24 +301,24 @@ LocalTrajectoryBuilder3D::InsertIntoSubmap(
void LocalTrajectoryBuilder3D::RegisterMetrics( void LocalTrajectoryBuilder3D::RegisterMetrics(
metrics::FamilyFactory* family_factory) { metrics::FamilyFactory* family_factory) {
auto* latency = family_factory->NewGaugeFamily( auto* latency = family_factory->NewGaugeFamily(
"mapping_internal_3d_local_trajectory_builder_latency", "mapping_3d_local_trajectory_builder_latency",
"Duration from first incoming point cloud in accumulation to local slam " "Duration from first incoming point cloud in accumulation to local slam "
"result"); "result");
kLocalSlamLatencyMetric = latency->Add({}); kLocalSlamLatencyMetric = latency->Add({});
auto score_boundaries = metrics::Histogram::FixedWidth(0.05, 20); auto score_boundaries = metrics::Histogram::FixedWidth(0.05, 20);
auto* scores = family_factory->NewHistogramFamily( auto* scores = family_factory->NewHistogramFamily(
"mapping_internal_3d_local_trajectory_builder_scores", "mapping_3d_local_trajectory_builder_scores", "Local scan matcher scores",
"Local scan matcher scores", score_boundaries); score_boundaries);
kRealTimeCorrelativeScanMatcherScoreMetric = kRealTimeCorrelativeScanMatcherScoreMetric =
scores->Add({{"scan_matcher", "real_time_correlative"}}); scores->Add({{"scan_matcher", "real_time_correlative"}});
auto cost_boundaries = metrics::Histogram::ScaledPowersOf(2, 0.01, 100); auto cost_boundaries = metrics::Histogram::ScaledPowersOf(2, 0.01, 100);
auto* costs = family_factory->NewHistogramFamily( auto* costs = family_factory->NewHistogramFamily(
"mapping_internal_3d_local_trajectory_builder_costs", "mapping_3d_local_trajectory_builder_costs", "Local scan matcher costs",
"Local scan matcher costs", cost_boundaries); cost_boundaries);
kCeresScanMatcherCostMetric = costs->Add({{"scan_matcher", "ceres"}}); kCeresScanMatcherCostMetric = costs->Add({{"scan_matcher", "ceres"}});
auto distance_boundaries = metrics::Histogram::ScaledPowersOf(2, 0.01, 10); auto distance_boundaries = metrics::Histogram::ScaledPowersOf(2, 0.01, 10);
auto* residuals = family_factory->NewHistogramFamily( auto* residuals = family_factory->NewHistogramFamily(
"mapping_internal_3d_local_trajectory_builder_residuals", "mapping_3d_local_trajectory_builder_residuals",
"Local scan matcher residuals", distance_boundaries); "Local scan matcher residuals", distance_boundaries);
kScanMatcherResidualDistanceMetric = kScanMatcherResidualDistanceMetric =
residuals->Add({{"component", "distance"}}); residuals->Add({{"component", "distance"}});

View File

@ -306,7 +306,7 @@ void ConstraintBuilder2D::DeleteScanMatcher(const SubmapId& submap_id) {
void ConstraintBuilder2D::RegisterMetrics(metrics::FamilyFactory* factory) { void ConstraintBuilder2D::RegisterMetrics(metrics::FamilyFactory* factory) {
auto* counts = factory->NewCounterFamily( auto* counts = factory->NewCounterFamily(
"mapping_internal_constraints_constraint_builder_2d_constraints", "mapping_constraints_constraint_builder_2d_constraints",
"Constraints computed"); "Constraints computed");
kConstraintsSearchedMetric = kConstraintsSearchedMetric =
counts->Add({{"search_region", "local"}, {"matcher", "searched"}}); counts->Add({{"search_region", "local"}, {"matcher", "searched"}});
@ -317,12 +317,11 @@ void ConstraintBuilder2D::RegisterMetrics(metrics::FamilyFactory* factory) {
kGlobalConstraintsFoundMetric = kGlobalConstraintsFoundMetric =
counts->Add({{"search_region", "global"}, {"matcher", "found"}}); counts->Add({{"search_region", "global"}, {"matcher", "found"}});
auto* queue_length = factory->NewGaugeFamily( auto* queue_length = factory->NewGaugeFamily(
"mapping_internal_constraints_constraint_builder_2d_queue_length", "mapping_constraints_constraint_builder_2d_queue_length", "Queue length");
"Queue length");
kQueueLengthMetric = queue_length->Add({}); kQueueLengthMetric = queue_length->Add({});
auto boundaries = metrics::Histogram::FixedWidth(0.05, 20); auto boundaries = metrics::Histogram::FixedWidth(0.05, 20);
auto* scores = factory->NewHistogramFamily( auto* scores = factory->NewHistogramFamily(
"mapping_internal_constraints_constraint_builder_2d_scores", "mapping_constraints_constraint_builder_2d_scores",
"Constraint scores built", boundaries); "Constraint scores built", boundaries);
kConstraintScoresMetric = scores->Add({{"search_region", "local"}}); kConstraintScoresMetric = scores->Add({{"search_region", "local"}});
kGlobalConstraintScoresMetric = scores->Add({{"search_region", "global"}}); kGlobalConstraintScoresMetric = scores->Add({{"search_region", "global"}});

View File

@ -341,7 +341,7 @@ void ConstraintBuilder3D::DeleteScanMatcher(const SubmapId& submap_id) {
void ConstraintBuilder3D::RegisterMetrics(metrics::FamilyFactory* factory) { void ConstraintBuilder3D::RegisterMetrics(metrics::FamilyFactory* factory) {
auto* counts = factory->NewCounterFamily( auto* counts = factory->NewCounterFamily(
"mapping_internal_constraints_constraint_builder_3d_constraints", "mapping_constraints_constraint_builder_3d_constraints",
"Constraints computed"); "Constraints computed");
kConstraintsSearchedMetric = kConstraintsSearchedMetric =
counts->Add({{"search_region", "local"}, {"matcher", "searched"}}); counts->Add({{"search_region", "local"}, {"matcher", "searched"}});
@ -352,12 +352,11 @@ void ConstraintBuilder3D::RegisterMetrics(metrics::FamilyFactory* factory) {
kGlobalConstraintsFoundMetric = kGlobalConstraintsFoundMetric =
counts->Add({{"search_region", "global"}, {"matcher", "found"}}); counts->Add({{"search_region", "global"}, {"matcher", "found"}});
auto* queue_length = factory->NewGaugeFamily( auto* queue_length = factory->NewGaugeFamily(
"mapping_internal_constraints_constraint_builder_3d_queue_length", "mapping_constraints_constraint_builder_3d_queue_length", "Queue length");
"Queue length");
kQueueLengthMetric = queue_length->Add({}); kQueueLengthMetric = queue_length->Add({});
auto boundaries = metrics::Histogram::FixedWidth(0.05, 20); auto boundaries = metrics::Histogram::FixedWidth(0.05, 20);
auto* scores = factory->NewHistogramFamily( auto* scores = factory->NewHistogramFamily(
"mapping_internal_constraints_constraint_builder_3d_scores", "mapping_constraints_constraint_builder_3d_scores",
"Constraint scores built", boundaries); "Constraint scores built", boundaries);
kConstraintScoresMetric = kConstraintScoresMetric =
scores->Add({{"search_region", "local"}, {"kind", "score"}}); scores->Add({{"search_region", "local"}, {"kind", "score"}});

View File

@ -155,7 +155,7 @@ std::unique_ptr<TrajectoryBuilderInterface> CreateGlobalTrajectoryBuilder3D(
void GlobalTrajectoryBuilderRegisterMetrics(metrics::FamilyFactory* factory) { void GlobalTrajectoryBuilderRegisterMetrics(metrics::FamilyFactory* factory) {
auto* results = factory->NewCounterFamily( auto* results = factory->NewCounterFamily(
"mapping_internal_global_trajectory_builder_local_slam_results", "mapping_global_trajectory_builder_local_slam_results",
"Local SLAM results"); "Local SLAM results");
kLocalSlamMatchingResults = results->Add({{"type", "MatchingResult"}}); kLocalSlamMatchingResults = results->Add({{"type", "MatchingResult"}});
kLocalSlamInsertionResults = results->Add({{"type", "InsertionResult"}}); kLocalSlamInsertionResults = results->Add({{"type", "InsertionResult"}});