зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0146031967
Коммит
7e0ec04242
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче