mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Benchmarks are run when atom is run with --benchmark argument
This commit is contained in:
@@ -113,6 +113,13 @@
|
||||
context->Exit();
|
||||
}
|
||||
|
||||
- (void)loadEnd {
|
||||
if ([[[NSProcessInfo processInfo] arguments] containsObject:@"--benchmark"]) {
|
||||
NSLog(@"Running Benchmarks");
|
||||
[self runBenchmarks:self];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
// Returns the application settings based on command line arguments.
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
@optional
|
||||
- (void)afterCreated;
|
||||
- (void)loadStart;
|
||||
- (void)loadEnd;
|
||||
- (bool)keyEventOfType:(cef_handler_keyevent_type_t)type code:(int)code modifiers:(int)modifiers isSystemKey:(bool)isSystemKey isAfterJavaScript:(bool)isAfterJavaScript;
|
||||
|
||||
@end
|
||||
|
||||
@@ -82,6 +82,12 @@ void ClientHandler::OnLoadEnd(CefRefPtr<CefBrowser> browser,
|
||||
int httpStatusCode)
|
||||
{
|
||||
REQUIRE_UI_THREAD();
|
||||
|
||||
|
||||
if ([m_delegate respondsToSelector:@selector(loadEnd)]) {
|
||||
[m_delegate loadEnd];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool ClientHandler::OnLoadError(CefRefPtr<CefBrowser> browser,
|
||||
|
||||
Reference in New Issue
Block a user