OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 class ExternalArrayVisitor; | 44 class ExternalArrayVisitor; |
45 class ExternalStringVisitor; | 45 class ExternalStringVisitor; |
46 class WrappedNodeVisitor; | 46 class WrappedNodeVisitor; |
47 class Page; | 47 class Page; |
48 class ScriptObject; | 48 class ScriptObject; |
49 class ScriptValue; | 49 class ScriptValue; |
50 class WorkerContext; | 50 class WorkerGlobalScope; |
51 | 51 |
52 class ScriptProfiler { | 52 class ScriptProfiler { |
53 WTF_MAKE_NONCOPYABLE(ScriptProfiler); | 53 WTF_MAKE_NONCOPYABLE(ScriptProfiler); |
54 public: | 54 public: |
55 class HeapSnapshotProgress { | 55 class HeapSnapshotProgress { |
56 public: | 56 public: |
57 virtual ~HeapSnapshotProgress() { } | 57 virtual ~HeapSnapshotProgress() { } |
58 virtual void Start(int totalWork) = 0; | 58 virtual void Start(int totalWork) = 0; |
59 virtual void Worked(int workDone) = 0; | 59 virtual void Worked(int workDone) = 0; |
60 virtual void Done() = 0; | 60 virtual void Done() = 0; |
(...skipping 20 matching lines...) Expand all Loading... |
81 static void visitExternalStrings(ExternalStringVisitor*); | 81 static void visitExternalStrings(ExternalStringVisitor*); |
82 static void visitExternalArrays(ExternalArrayVisitor*); | 82 static void visitExternalArrays(ExternalArrayVisitor*); |
83 static void collectBindingMemoryInfo(MemoryInstrumentation*); | 83 static void collectBindingMemoryInfo(MemoryInstrumentation*); |
84 static size_t profilerSnapshotsSize(); | 84 static size_t profilerSnapshotsSize(); |
85 static HashMap<String, double>* currentProfileNameIdleTimeMap(); | 85 static HashMap<String, double>* currentProfileNameIdleTimeMap(); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace WebCore | 88 } // namespace WebCore |
89 | 89 |
90 #endif // ScriptProfiler_h | 90 #endif // ScriptProfiler_h |
OLD | NEW |