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

Side by Side Diff: util/win/process_structs.h

Issue 1462203002: win: class VM_COUNTERS -> struct (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Crashpad Authors. All rights reserved. 1 // Copyright 2015 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 typename Traits::Pad padding_for_x64_1; 353 typename Traits::Pad padding_for_x64_1;
354 }; 354 };
355 }; 355 };
356 LARGE_INTEGER alignment_for_x86[8]; 356 LARGE_INTEGER alignment_for_x86[8];
357 }; 357 };
358 }; 358 };
359 359
360 // There's an extra field in the x64 VM_COUNTERS (or maybe it's VM_COUNTERS_EX, 360 // There's an extra field in the x64 VM_COUNTERS (or maybe it's VM_COUNTERS_EX,
361 // it's not clear), so we just make separate specializations for 32/64. 361 // it's not clear), so we just make separate specializations for 32/64.
362 template <class Traits> 362 template <class Traits>
363 class VM_COUNTERS {}; 363 struct VM_COUNTERS {};
364 364
365 template <> 365 template <>
366 class VM_COUNTERS<internal::Traits32> { 366 struct VM_COUNTERS<internal::Traits32> {
367 SIZE_T PeakVirtualSize; 367 SIZE_T PeakVirtualSize;
368 SIZE_T VirtualSize; 368 SIZE_T VirtualSize;
369 ULONG PageFaultCount; 369 ULONG PageFaultCount;
370 SIZE_T PeakWorkingSetSize; 370 SIZE_T PeakWorkingSetSize;
371 SIZE_T WorkingSetSize; 371 SIZE_T WorkingSetSize;
372 SIZE_T QuotaPeakPagedPoolUsage; 372 SIZE_T QuotaPeakPagedPoolUsage;
373 SIZE_T QuotaPagedPoolUsage; 373 SIZE_T QuotaPagedPoolUsage;
374 SIZE_T QuotaPeakNonPagedPoolUsage; 374 SIZE_T QuotaPeakNonPagedPoolUsage;
375 SIZE_T QuotaNonPagedPoolUsage; 375 SIZE_T QuotaNonPagedPoolUsage;
376 SIZE_T PagefileUsage; 376 SIZE_T PagefileUsage;
377 SIZE_T PeakPagefileUsage; 377 SIZE_T PeakPagefileUsage;
378 }; 378 };
379 379
380 template <> 380 template <>
381 class VM_COUNTERS<internal::Traits64> { 381 struct VM_COUNTERS<internal::Traits64> {
382 SIZE_T PeakVirtualSize; 382 SIZE_T PeakVirtualSize;
383 SIZE_T VirtualSize; 383 SIZE_T VirtualSize;
384 union { 384 union {
385 ULONG PageFaultCount; 385 ULONG PageFaultCount;
386 internal::Traits64::Pad padding_for_x64; 386 internal::Traits64::Pad padding_for_x64;
387 }; 387 };
388 SIZE_T PeakWorkingSetSize; 388 SIZE_T PeakWorkingSetSize;
389 SIZE_T WorkingSetSize; 389 SIZE_T WorkingSetSize;
390 SIZE_T QuotaPeakPagedPoolUsage; 390 SIZE_T QuotaPeakPagedPoolUsage;
391 SIZE_T QuotaPagedPoolUsage; 391 SIZE_T QuotaPagedPoolUsage;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 }; 502 };
503 503
504 #pragma pack(pop) 504 #pragma pack(pop)
505 505
506 //! \} 506 //! \}
507 507
508 } // namespace process_types 508 } // namespace process_types
509 } // namespace crashpad 509 } // namespace crashpad
510 510
511 #endif // CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_ 511 #endif // CRASHPAD_UTIL_WIN_PROCESS_STRUCTS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698