@@ -1045,6 +1045,8 @@ ImageBufImpl::init_spec(string_view filename, int subimage, int miplevel,
10451045 && m_current_subimage == subimage && m_current_miplevel == miplevel)
10461046 return true ; // Already done
10471047
1048+ pvt::LoggedTimer logtime (" IB::init_spec" );
1049+
10481050 m_name = filename;
10491051
10501052 // If we weren't given an imagecache but "imagebuf:use_imagecache"
@@ -1219,6 +1221,7 @@ ImageBufImpl::read(int subimage, int miplevel, int chbegin, int chend,
12191221 return false ;
12201222 }
12211223
1224+ pvt::LoggedTimer logtime (" IB::read" );
12221225 m_current_subimage = subimage;
12231226 m_current_miplevel = miplevel;
12241227 if (chend < 0 || chend > nativespec ().nchannels )
@@ -1465,6 +1468,7 @@ ImageBuf::write(ImageOutput* out, ProgressCallback progress_callback,
14651468 }
14661469 bool ok = true ;
14671470 ok &= m_impl->validate_pixels ();
1471+ pvt::LoggedTimer (" IB::write inner" );
14681472 if (out->supports (" thumbnail" ) && has_thumbnail ()) {
14691473 auto thumb = get_thumbnail ();
14701474 // Strutil::print("IB::write: has thumbnail ROI {}\n", thumb->roi());
@@ -1581,6 +1585,7 @@ ImageBuf::write(string_view _filename, TypeDesc dtype, string_view _fileformat,
15811585 ProgressCallback progress_callback,
15821586 void * progress_callback_data) const
15831587{
1588+ pvt::LoggedTimer (" IB::write" );
15841589 string_view filename = _filename.size () ? _filename : string_view (name ());
15851590 string_view fileformat = _fileformat.size () ? _fileformat : filename;
15861591 if (filename.size () == 0 ) {
0 commit comments