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

Adding timing capabilities to clean memory #5

Merged
merged 3 commits into from
Jun 7, 2016
Merged

Adding timing capabilities to clean memory #5

merged 3 commits into from
Jun 7, 2016

Conversation

plivesey
Copy link
Owner

@plivesey plivesey commented Jun 7, 2016

This will enable projects to time how long garbage collection is taking

This will enable projects to time how long garbage collection is taking
// MARK: Constants

/**
This notification is fired whenever the asyncronous work of clean memory starts.

Choose a reason for hiding this comment

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

typo - asynchronous

@@ -59,5 +61,6 @@ class MemoryWarningTests: ConsistencyManagerTestCase {
XCTAssertEqual(cleanMemoryStartedTimes.count, 1)
XCTAssertEqual(cleanMemoryFinishedTimes.count, 1)
XCTAssertTrue(cleanMemoryStartedTimes[0].timeIntervalSince1970 <= cleanMemoryFinishedTimes[0].timeIntervalSince1970)
XCTAssertTrue(testStart.timeIntervalSinceNow <= cleanMemoryStartedTimes[0].timeIntervalSince1970)
Copy link

Choose a reason for hiding this comment

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

Should be testStart.timeIntervalSince1970, not timeIntervalSinceNow

@plivesey plivesey merged commit 7ce5a5e into plivesey:master Jun 7, 2016
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.

3 participants