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

Unified Diff: base/tracked_objects.h

Issue 6736019: Base: A few more files using BASE_API (for base.dll) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/timer.h ('k') | base/vlog.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/tracked_objects.h
===================================================================
--- base/tracked_objects.h (revision 79303)
+++ base/tracked_objects.h (working copy)
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
+#include "base/base_api.h"
#include "base/synchronization/lock.h"
#include "base/tracked.h"
#include "base/threading/thread_local_storage.h"
@@ -156,7 +157,7 @@
// For a specific thread, and a specific birth place, the collection of all
// death info (with tallies for each death thread, to prevent access conflicts).
class ThreadData;
-class BirthOnThread {
+class BASE_API BirthOnThread {
public:
explicit BirthOnThread(const Location& location);
@@ -179,7 +180,7 @@
//------------------------------------------------------------------------------
// A class for accumulating counts of births (without bothering with a map<>).
-class Births: public BirthOnThread {
+class BASE_API Births: public BirthOnThread {
public:
explicit Births(const Location& location);
@@ -207,7 +208,7 @@
// birthplace (fixed Location). Used both on specific threads, and also used
// in snapshots when integrating assembled data.
-class DeathData {
+class BASE_API DeathData {
public:
// Default initializer.
DeathData() : count_(0), square_duration_(0) {}
@@ -248,7 +249,7 @@
// The source of this data was collected on many threads, and is asynchronously
// changing. The data in this instance is not asynchronously changing.
-class Snapshot {
+class BASE_API Snapshot {
public:
// When snapshotting a full life cycle set (birth-to-death), use this:
Snapshot(const BirthOnThread& birth_on_thread, const ThreadData& death_thread,
@@ -284,7 +285,7 @@
// items. It protects the gathering under locks, so that it could be called via
// Posttask on any threads, or passed to all the target threads in parallel.
-class DataCollector {
+class BASE_API DataCollector {
public:
typedef std::vector<Snapshot> Collection;
@@ -331,7 +332,7 @@
// Aggregation contains summaries (totals and subtotals) of groups of Snapshot
// instances to provide printing of these collections on a single line.
-class Aggregation: public DeathData {
+class BASE_API Aggregation: public DeathData {
public:
Aggregation();
~Aggregation();
@@ -363,7 +364,7 @@
// instances within the groups (for detailed rendering of the instances in an
// aggregation).
-class Comparator {
+class BASE_API Comparator {
public:
// Selector enum is the token identifier for each parsed keyword, most of
// which specify a sort order.
@@ -464,7 +465,7 @@
// For each thread, we have a ThreadData that stores all tracking info generated
// on this thread. This prevents the need for locking as data accumulates.
-class ThreadData {
+class BASE_API ThreadData {
public:
typedef std::map<Location, Births*> BirthMap;
typedef std::map<const Births*, DeathData> DeathMap;
« no previous file with comments | « base/timer.h ('k') | base/vlog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698