Open Bug 1547989 Opened 5 years ago Updated 2 years ago

Missing mainthread file IO markers for IsDirectory() call on Windows from MakeFileInputStream

Categories

(Core :: Gecko Profiler, defect, P2)

defect

Tracking

()

Tracking Status
firefox68 --- affected

People

(Reporter: Gijs, Unassigned)

References

(Blocks 1 open bug)

Details

MakeFileInputStream in nsIFileChannel calls IsDirectory() on the main thread, at https://searchfox.org/mozilla-central/rev/b756e6d00728dda4121f8278a744381d8643317a/netwerk/protocol/file/nsFileChannel.cpp#298 . That's going to cause IO (ie a stat call, unless we have a cached stat result in the nsIFile instance already), based on code inspection of our *nix and Windows implementations for nsIFile::IsDirectory(), but it doesn't seem to show up in profiles at all.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.