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

Side by Side Diff: chrome/browser/memory_details.cc

Issue 411283002: Remove disable-embedded-shared-worker flag and shared worker process related codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 months 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/memory_details.h" 5 #include "chrome/browser/memory_details.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_version_info.h" 8 #include "base/file_version_info.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 UMA_HISTOGRAM_MEMORY_KB("Memory.RendererGrowthIn30Min", diff); 465 UMA_HISTOGRAM_MEMORY_KB("Memory.RendererGrowthIn30Min", diff);
466 } 466 }
467 renderer_count++; 467 renderer_count++;
468 continue; 468 continue;
469 } 469 }
470 } 470 }
471 case content::PROCESS_TYPE_PLUGIN: 471 case content::PROCESS_TYPE_PLUGIN:
472 UMA_HISTOGRAM_MEMORY_KB("Memory.Plugin", sample); 472 UMA_HISTOGRAM_MEMORY_KB("Memory.Plugin", sample);
473 plugin_count++; 473 plugin_count++;
474 continue; 474 continue;
475 case content::PROCESS_TYPE_WORKER:
476 UMA_HISTOGRAM_MEMORY_KB("Memory.Worker", sample);
477 worker_count++;
478 continue;
479 case content::PROCESS_TYPE_UTILITY: 475 case content::PROCESS_TYPE_UTILITY:
480 UMA_HISTOGRAM_MEMORY_KB("Memory.Utility", sample); 476 UMA_HISTOGRAM_MEMORY_KB("Memory.Utility", sample);
481 other_count++; 477 other_count++;
482 continue; 478 continue;
483 case content::PROCESS_TYPE_ZYGOTE: 479 case content::PROCESS_TYPE_ZYGOTE:
484 UMA_HISTOGRAM_MEMORY_KB("Memory.Zygote", sample); 480 UMA_HISTOGRAM_MEMORY_KB("Memory.Zygote", sample);
485 other_count++; 481 other_count++;
486 continue; 482 continue;
487 case content::PROCESS_TYPE_SANDBOX_HELPER: 483 case content::PROCESS_TYPE_SANDBOX_HELPER:
488 UMA_HISTOGRAM_MEMORY_KB("Memory.SandboxHelper", sample); 484 UMA_HISTOGRAM_MEMORY_KB("Memory.SandboxHelper", sample);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 continue; 573 continue;
578 case ProcessMemoryInformation::RENDERER_NORMAL: 574 case ProcessMemoryInformation::RENDERER_NORMAL:
579 default: 575 default:
580 UMA_HISTOGRAM_MEMORY_KB("Memory.Swap.Renderer", sample); 576 UMA_HISTOGRAM_MEMORY_KB("Memory.Swap.Renderer", sample);
581 continue; 577 continue;
582 } 578 }
583 } 579 }
584 case content::PROCESS_TYPE_PLUGIN: 580 case content::PROCESS_TYPE_PLUGIN:
585 UMA_HISTOGRAM_MEMORY_KB("Memory.Swap.Plugin", sample); 581 UMA_HISTOGRAM_MEMORY_KB("Memory.Swap.Plugin", sample);
586 continue; 582 continue;
587 case content::PROCESS_TYPE_WORKER:
588 UMA_HISTOGRAM_MEMORY_KB("Memory.Swap.Worker", sample);
589 continue;
590 case content::PROCESS_TYPE_UTILITY: 583 case content::PROCESS_TYPE_UTILITY:
591 UMA_HISTOGRAM_MEMORY_KB("Memory.Swap.Utility", sample); 584 UMA_HISTOGRAM_MEMORY_KB("Memory.Swap.Utility", sample);
592 continue; 585 continue;
593 case content::PROCESS_TYPE_ZYGOTE: 586 case content::PROCESS_TYPE_ZYGOTE:
594 UMA_HISTOGRAM_MEMORY_KB("Memory.Swap.Zygote", sample); 587 UMA_HISTOGRAM_MEMORY_KB("Memory.Swap.Zygote", sample);
595 continue; 588 continue;
596 case content::PROCESS_TYPE_SANDBOX_HELPER: 589 case content::PROCESS_TYPE_SANDBOX_HELPER:
597 UMA_HISTOGRAM_MEMORY_KB("Memory.Swap.SandboxHelper", sample); 590 UMA_HISTOGRAM_MEMORY_KB("Memory.Swap.SandboxHelper", sample);
598 continue; 591 continue;
599 case content::PROCESS_TYPE_GPU: 592 case content::PROCESS_TYPE_GPU:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 631
639 if (swap_info_.orig_data_size > 0 && swap_info_.compr_data_size > 0) { 632 if (swap_info_.orig_data_size > 0 && swap_info_.compr_data_size > 0) {
640 UMA_HISTOGRAM_CUSTOM_COUNTS( 633 UMA_HISTOGRAM_CUSTOM_COUNTS(
641 "Memory.Swap.CompressionRatio", 634 "Memory.Swap.CompressionRatio",
642 swap_info_.orig_data_size / swap_info_.compr_data_size, 635 swap_info_.orig_data_size / swap_info_.compr_data_size,
643 1, 20, 20); 636 1, 20, 20);
644 } 637 }
645 } 638 }
646 639
647 #endif 640 #endif
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_targets_ui.cc ('k') | chrome/browser/metrics/profiler_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698