mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
9c58b668ff
Chrome on ChromeOS is starting to run into problems where there are more than 200 annotations, primarily because we use a lot of command-line switches (40 or more) and commandline-enabled-features as well, each of which takes up an annotation. It's still rare (100s a day) but will probably become worse over time as more CrashKey uses are added. Increase kMaxNumberOfAnnotations to 400. BUG=296821415 Change-Id: Iba7049014ee3c5ae9c45c4022600eaba50acd403 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/5354336 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Ian Barkley-Yeung <iby@chromium.org> Reviewed-by: Joshua Peraza <jperaza@chromium.org>
29 lines
1000 B
C++
29 lines
1000 B
C++
// Copyright 2017 The Crashpad Authors
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#ifndef SNAPSHOT_SNAPSHOT_CONSTANTS_H_
|
|
#define SNAPSHOT_SNAPSHOT_CONSTANTS_H_
|
|
|
|
namespace crashpad {
|
|
|
|
//! \brief The maximum number of crashpad::Annotations that will be read from
|
|
//! a client process.
|
|
//!
|
|
//! \note This maximum was chosen arbitrarily and may change in the future.
|
|
constexpr size_t kMaxNumberOfAnnotations = 400;
|
|
|
|
} // namespace crashpad
|
|
|
|
#endif // SNAPSHOT_SNAPSHOT_CONSTANTS_H_
|