Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_FRAGMENTATION_CHECKER_WIN_H_ | |
| 6 #define CHROME_BROWSER_FRAGMENTATION_CHECKER_WIN_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/file_path.h" | |
| 10 | |
| 11 namespace fragmentation_checker { | |
| 12 | |
| 13 // Returns the count of the number of extents for the file at |file_path|. On | |
|
grt (UTC plus 2)
2011/10/01 02:49:46
Is "the count of the number of" different than "th
robertshield
2011/10/01 05:00:41
Yes: http://www.youtube.com/watch?v=kQC82okzTXI
| |
| 14 // success, returns true and the count is placed in |file_extents_count|. | |
| 15 bool CountFileExtents(const FilePath& file_path, uint32* file_extents_count); | |
|
grt (UTC plus 2)
2011/10/01 02:49:46
Style guide says not to use unsigned types just be
robertshield
2011/10/01 05:00:41
I chose it here because the ioctl returns a dword,
| |
| 16 | |
| 17 // Records fragmentation metrics for the current module. This records the number | |
| 18 // of fragments the current module is stored in as well as the total on-disk | |
|
grt (UTC plus 2)
2011/10/01 02:49:46
remove " as well as the total on-disk..."
robertshield
2011/10/01 05:00:41
Done.
| |
| 19 // span of those fragments. | |
| 20 // This will be used to determine whether pursuing more aggressive | |
| 21 // manual defragmentation is worth the effort. | |
| 22 void RecordFragmentationMetricForCurrentModule(); | |
| 23 | |
| 24 } // namespace fragmentation_checker | |
| 25 | |
| 26 #endif // CHROME_BROWSER_FRAGMENTATION_CHECKER_WIN_H_ | |
| OLD | NEW |