Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/inspector/v8-inspector-impl.cc

Issue 2579403002: [inspector] introduce limit for amount of stored async stacks (Closed)
Patch Set: added missing test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010-2011 Google Inc. All rights reserved. 2 * Copyright (c) 2010-2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 return iter == m_contexts.end() ? nullptr : iter->second.get(); 389 return iter == m_contexts.end() ? nullptr : iter->second.get();
390 } 390 }
391 391
392 V8InspectorSessionImpl* V8InspectorImpl::sessionForContextGroup( 392 V8InspectorSessionImpl* V8InspectorImpl::sessionForContextGroup(
393 int contextGroupId) { 393 int contextGroupId) {
394 if (!contextGroupId) return nullptr; 394 if (!contextGroupId) return nullptr;
395 SessionMap::iterator iter = m_sessions.find(contextGroupId); 395 SessionMap::iterator iter = m_sessions.find(contextGroupId);
396 return iter == m_sessions.end() ? nullptr : iter->second; 396 return iter == m_sessions.end() ? nullptr : iter->second;
397 } 397 }
398 398
399 void V8InspectorImpl::setMaxAsyncTaskStacksForTest(int limit) {
400 m_debugger->setMaxAsyncTaskStacksForTest(limit);
401 }
402
399 } // namespace v8_inspector 403 } // namespace v8_inspector
OLDNEW
« no previous file with comments | « src/inspector/v8-inspector-impl.h ('k') | test/inspector/DEPS » ('j') | test/inspector/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698