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

Add merge functionality to snapshot #20

Open
toefel18 opened this issue Apr 6, 2016 · 0 comments
Open

Add merge functionality to snapshot #20

toefel18 opened this issue Apr 6, 2016 · 0 comments

Comments

@toefel18
Copy link
Owner

toefel18 commented Apr 6, 2016

Provide a method on Snapshot to create a new snapshot that is a merge of itself and another snapshot:

public class Snapshot {
    public Snapshot merge(Snapshot other) {
             return newSnapshotInstanceWithMergedData;
     }
}

Users can then track the statistics since program start by calling getSnapshotAndReset() periodically and merge it with a global instance of Snapshot.

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

No branches or pull requests

1 participant