Bug 1529386 - Rename DiskIO marker payloads to FileIO in profiler; r=canaltinova

Differential Revision: https://phabricator.services.mozilla.com/D20572

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Greg Tatum 2019-02-21 15:32:07 +00:00
Родитель 0146031967
Коммит 7e0ec04242
4 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -70,10 +70,10 @@ void TracingMarkerPayload::StreamPayload(SpliceableJSONWriter& aWriter,
}
}
void DiskIOMarkerPayload::StreamPayload(SpliceableJSONWriter& aWriter,
void FileIOMarkerPayload::StreamPayload(SpliceableJSONWriter& aWriter,
const TimeStamp& aProcessStartTime,
UniqueStacks& aUniqueStacks) {
StreamCommonProps("DiskIO", aWriter, aProcessStartTime, aUniqueStacks);
StreamCommonProps("FileIO", aWriter, aProcessStartTime, aUniqueStacks);
aWriter.StringProperty("operation", mOperation.get());
aWriter.StringProperty("source", mSource);
if (mFilename) {

Просмотреть файл

@ -1763,7 +1763,7 @@ static void StreamMetaJSCustomObject(PSLockRef aLock,
bool aIsShuttingDown) {
MOZ_RELEASE_ASSERT(CorePS::Exists() && ActivePS::Exists(aLock));
aWriter.IntProperty("version", 14);
aWriter.IntProperty("version", 15);
// The "startTime" field holds the number of milliseconds since midnight
// January 1, 1970 GMT. This grotty code computes (Now - (Now -

Просмотреть файл

@ -19,8 +19,8 @@ void ProfilerIOInterposeObserver::Observe(Observation& aObservation) {
nsString filename;
aObservation.Filename(filename);
profiler_add_marker(
"DiskIO", JS::ProfilingCategoryPair::OTHER,
MakeUnique<DiskIOMarkerPayload>(
"FileIO", JS::ProfilingCategoryPair::OTHER,
MakeUnique<FileIOMarkerPayload>(
aObservation.ObservedOperationString(), aObservation.Reference(),
NS_ConvertUTF16toUTF8(filename).get(), aObservation.Start(),
aObservation.End(), std::move(stack)));

Просмотреть файл

@ -119,9 +119,9 @@ class TracingMarkerPayload : public ProfilerMarkerPayload {
TracingKind mKind;
};
class DiskIOMarkerPayload : public ProfilerMarkerPayload {
class FileIOMarkerPayload : public ProfilerMarkerPayload {
public:
DiskIOMarkerPayload(const char* aOperation, const char* aSource,
FileIOMarkerPayload(const char* aOperation, const char* aSource,
const char* aFilename,
const mozilla::TimeStamp& aStartTime,
const mozilla::TimeStamp& aEndTime,