Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Add DeltaProducer harvesting.#114

Merged
isturdy merged 1 commit intocensus-instrumentation:masterfrom
isturdy:deltaproducer-harvester
Mar 27, 2018
Merged

Add DeltaProducer harvesting.#114
isturdy merged 1 commit intocensus-instrumentation:masterfrom
isturdy:deltaproducer-harvester

Conversation

@isturdy
Copy link
Copy Markdown
Contributor

@isturdy isturdy commented Mar 19, 2018

Builds on previous PRs.

@isturdy isturdy requested a review from g-easy March 19, 2018 21:35
@isturdy isturdy force-pushed the deltaproducer-harvester branch from d1e63f4 to 1d05a06 Compare March 19, 2018 22:21
ExperimentalDeltaProducerRecord({{SecondMeasure(), 1}});
DeltaProducer::Get()->Flush();
EXPECT_TRUE(view.GetData().int_data().empty());
EXPECT_THAT(view.GetData().int_data(), ::testing::ElementsAre());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't the .empty() check imply this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. Removed.

const uint64_t index = MeasureRegistryImpl::IdToIndex(descriptor.measure_id_);
// We need to call this outside of the locked portion to avoid a deadlock when
// the DeltaProducer flushes the old delta. We call it before adding the view
// to avoid errors from the old delta not having a hsitogram for the new view.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

histogram

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@isturdy isturdy force-pushed the deltaproducer-harvester branch 2 times, most recently from 0fc4a31 to 3e365a0 Compare March 22, 2018 18:02
@isturdy isturdy force-pushed the deltaproducer-harvester branch from 3e365a0 to f9e07f4 Compare March 27, 2018 17:10
@isturdy isturdy merged commit a44fa1c into census-instrumentation:master Mar 27, 2018
@isturdy isturdy deleted the deltaproducer-harvester branch March 27, 2018 17:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants