mirror of https://github.com/KLayout/klayout.git
Fixed the timers for measuring read sorting times (out of band fix)
This commit is contained in:
parent
1091ea6d5b
commit
b3e823ca28
|
|
@ -917,6 +917,8 @@ CIFReader::read_cell (db::Layout &layout, db::Cell &cell, double sf, int level)
|
|||
void
|
||||
CIFReader::do_read (db::Layout &layout)
|
||||
{
|
||||
tl::SelfTimer timer (tl::verbosity () >= 21, "File read");
|
||||
|
||||
try {
|
||||
|
||||
double sf = 0.01 / m_dbu;
|
||||
|
|
|
|||
|
|
@ -490,6 +490,8 @@ DXFReader::open_layer (db::Layout &layout, const std::string &n)
|
|||
void
|
||||
DXFReader::do_read (db::Layout &layout, db::cell_index_type top)
|
||||
{
|
||||
tl::SelfTimer timer (tl::verbosity () >= 21, "File read");
|
||||
|
||||
m_new_layers.clear ();
|
||||
|
||||
// create the zero layer - this is not mapped to GDS but can be specified in the layer mapping as
|
||||
|
|
|
|||
|
|
@ -233,6 +233,8 @@ eq_y (const GDS2XY &a, const GDS2XY &b)
|
|||
void
|
||||
GDS2ReaderBase::do_read (db::Layout &layout)
|
||||
{
|
||||
tl::SelfTimer timer (tl::verbosity () >= 21, "File read");
|
||||
|
||||
m_cellname = "";
|
||||
m_libname = "";
|
||||
|
||||
|
|
|
|||
|
|
@ -1271,6 +1271,8 @@ Layout::update () const
|
|||
void
|
||||
Layout::do_update ()
|
||||
{
|
||||
tl::SelfTimer timer (tl::verbosity () >= 21, tl::to_string (QObject::tr ("Sorting")));
|
||||
|
||||
// establish a progress report since this operation can take some time.
|
||||
// HINT: because of some gcc bug, automatic destruction of the tl::Progress
|
||||
// object does not work. We overcome this problem by creating the object with new
|
||||
|
|
|
|||
|
|
@ -655,7 +655,7 @@ static const char magic_bytes[] = { "%SEMI-OASIS\015\012" };
|
|||
void
|
||||
OASISReader::do_read (db::Layout &layout)
|
||||
{
|
||||
tl::SelfTimer timer (tl::verbosity () >= 31, "File read");
|
||||
tl::SelfTimer timer (tl::verbosity () >= 21, "File read");
|
||||
|
||||
unsigned char r;
|
||||
char *mb;
|
||||
|
|
|
|||
|
|
@ -3028,10 +3028,11 @@ LayoutView::load_layout (const std::string &filename, const db::LoadLayoutOption
|
|||
|
||||
try {
|
||||
|
||||
tl::SelfTimer timer (tl::verbosity () >= 11, tl::to_string (QObject::tr ("Loading")));
|
||||
|
||||
// load the file
|
||||
{
|
||||
tl::log << tl::to_string (QObject::tr ("Loading file: ")) << filename << tl::to_string (QObject::tr (" with technology: ")) << technology;
|
||||
tl::SelfTimer timer (tl::verbosity () >= 11, tl::to_string (QObject::tr ("Loading")));
|
||||
lmap = cv->load (options, technology);
|
||||
}
|
||||
|
||||
|
|
@ -3039,7 +3040,6 @@ LayoutView::load_layout (const std::string &filename, const db::LoadLayoutOption
|
|||
// implicitly at some other time. This may throw an exception
|
||||
// if the operation was cancelled.
|
||||
{
|
||||
tl::SelfTimer timer (tl::verbosity () >= 11, tl::to_string (QObject::tr ("Sorting")));
|
||||
cv->layout ().update ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue