OSDN Git Service

Merge "Inferno: A framegrapher based on simpleperf"
[android-x86/system-extras.git] / iotop / iotop.cpp
index a7d569b..e2582e8 100644 (file)
@@ -22,7 +22,7 @@
 #include <unordered_map>
 #include <vector>
 
-#include <base/logging.h>
+#include <android-base/logging.h>
 
 #include "tasklist.h"
 #include "taskstats.h"
@@ -53,7 +53,7 @@ static void usage(char* myname) {
 }
 
 using Sorter = std::function<void(std::vector<TaskStatistics>&)>;
-static Sorter GetSorter(const std::string field) {
+static Sorter GetSorter(const std::string& field) {
   // Generic comparator
   static auto comparator = [](auto& lhs, auto& rhs, auto field, bool ascending) -> bool {
     auto a = (lhs.*field)();