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

Side by Side Diff: components/tracing/core/string_interning.cc

Issue 2308583003: tracing v2: Introduce TraceBufferReader to read-back the trace buffer (Closed)
Patch Set: DISALLOW_COPY_AND_ASSIGN + cctype for isalnum Created 4 years, 3 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
(Empty)
1 // Copyright 2016 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 #include "components/tracing/core/string_interning.h"
6
7 namespace tracing {
8 namespace v2 {
9
10 // TODO(primiano): there is a possibile optimization here: if we somehow
11 // guarantee that kInternedStringBase is always laid out before any other string
12 // in the binary, we can minimize the ptr distance and hence reduce the number
13 // of bytes required to VarInt-encode it. Very likely this can be done using
14 // __attribute__((section(X))) on Linux or __attribute__((section("__TEXT,X")))
15 // on OSX.
16 const char kInternedStringBase[] = "{[Tracing v2]}";
17
18 } // namespace v2
19 } // namespace tracing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698