diff options
author | Ian Rogers <irogers@google.com> | 2014-05-19 16:49:03 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-05-19 22:27:39 -0700 |
commit | 700a402244a1a423da4f3ba8032459f4b65fa18f (patch) | |
tree | 4c22fcda04d271bd55a37aff30650214af17a90c /runtime/trace.h | |
parent | 047c11adcbcbc0bcf210defdfcbada763961ffee (diff) | |
download | art-700a402244a1a423da4f3ba8032459f4b65fa18f.zip art-700a402244a1a423da4f3ba8032459f4b65fa18f.tar.gz art-700a402244a1a423da4f3ba8032459f4b65fa18f.tar.bz2 |
Now we have a proper C++ library, use std::unique_ptr.
Also remove the Android.libcxx.mk and other bits of stlport compatibility
mechanics.
Change-Id: Icdf7188ba3c79cdf5617672c1cfd0a68ae596a61
Diffstat (limited to 'runtime/trace.h')
-rw-r--r-- | runtime/trace.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/trace.h b/runtime/trace.h index ef6c642..08da16f 100644 --- a/runtime/trace.h +++ b/runtime/trace.h @@ -17,6 +17,7 @@ #ifndef ART_RUNTIME_TRACE_H_ #define ART_RUNTIME_TRACE_H_ +#include <memory> #include <ostream> #include <set> #include <string> @@ -27,7 +28,6 @@ #include "instrumentation.h" #include "os.h" #include "safe_map.h" -#include "UniquePtrCompat.h" namespace art { @@ -140,13 +140,13 @@ class Trace FINAL : public instrumentation::InstrumentationListener { static pthread_t sampling_pthread_; // Used to remember an unused stack trace to avoid re-allocation during sampling. - static UniquePtr<std::vector<mirror::ArtMethod*> > temp_stack_trace_; + static std::unique_ptr<std::vector<mirror::ArtMethod*>> temp_stack_trace_; // File to write trace data out to, NULL if direct to ddms. - UniquePtr<File> trace_file_; + std::unique_ptr<File> trace_file_; // Buffer to store trace data. - UniquePtr<uint8_t> buf_; + std::unique_ptr<uint8_t> buf_; // Flags enabling extra tracing of things such as alloc counts. const int flags_; |