Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the spy_disabled annotation to slices. #1129

Merged
merged 1 commit into from
Oct 17, 2017

Conversation

AWoloszyn
Copy link
Contributor

This allows us to avoid creation/copying of any slices that
are not needed during the trace. This should reduce memory pressure
as we no longer need to keep shadow memory around during the trace
as long as we know how to re-create it for mid-execution capture.

This allows us to avoid creation/copying of any slices that
are not needed during the trace. This should reduce memory pressure
as we no longer need to keep shadow memory around during the trace
as long as we know how to re-create it for mid-execution capture.
@@ -237,7 +235,7 @@ inline void CallObserver::write(const Slice<T>& dst, uint64_t index,
template <typename T>
inline Slice<T> CallObserver::copy(const Slice<T>& dst, const Slice<T>& src) {
read(src);
if (isActive() && !shouldObserve(
if (!shouldObserve(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: tidy line?

@AWoloszyn AWoloszyn merged commit 157c3c7 into google:master Oct 17, 2017
@AWoloszyn AWoloszyn deleted the spy_disabled branch October 17, 2017 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants