Abdelrazak Younes wrote:
Could you profile this instead:
lyx -e text UserGuide.lyx
another try:
% cumulative self self total
time seconds seconds calls ms/call ms/call name
16.00 0.04 0.04 24961 0.00 0.00
lyx::LyXLex::Pimpl::nextToken()
12.00 0.07 0.03 184108 0.00 0.00
lyx::Paragraph::setFont(int, lyx::LyXFont const&)
8.00 0.09 0.02 180583 0.00 0.00
lyx::Paragraph::insertChar(int, wchar_t, lyx::LyXFont
const&, lyx::Change const&)
8.00 0.11 0.02 39984 0.00 0.00
lyx::LyXLex::getString() const
8.00 0.13 0.02 1148 0.02 0.02
lyx::LyXTextClass::LyXTextClass(lyx::LyXTextClass con
st&)
4.00 0.14 0.01 183891 0.00 0.00
lyx::Changes::set(lyx::Change const&, int, int)
4.00 0.15 0.01 14266 0.00 0.00
lyx::LyXLex::Pimpl::next(bool)
4.00 0.16 0.01 12631 0.00 0.00
lyx::InsetBase::clone() const
4.00 0.17 0.01 9763 0.00 0.00
lyx::LyXFont::LyXFont()
4.00 0.18 0.01 9491 0.00 0.00
lyx::Paragraph::Pimpl::~Pimpl()
4.00 0.19 0.01 6765 0.00 0.00
std::vector<lyx::Paragraph::Pimpl::FontTable, std::al
locator<lyx::Paragraph::Pimpl::FontTable>
>::operator=(std::vector<lyx::Paragraph::Pimpl::FontTable, std::a
llocator<lyx::Paragraph::Pimpl::FontTable> > const&)
4.00 0.20 0.01 4159 0.00 0.00
__gnu_cxx::__normal_iterator<boost::shared_ptr<lyx::L
yXLayout> const*, std::vector<boost::shared_ptr<lyx::LyXLayout>,
std::allocator<boost::shared_ptr<lyx::LyXL
ayout> > > >
std::__find_if<__gnu_cxx::__normal_iterator<boost::shared_ptr<lyx::LyXLayout>
const*, std::vec
tor<boost::shared_ptr<lyx::LyXLayout>,
std::allocator<boost::shared_ptr<lyx::LyXLayout> > > >, lyx::(anonym
ous
namespace)::LayoutNamesEqual>(__gnu_cxx::__normal_iterator<boost::shared_ptr<lyx::LyXLayout>
const*, st
d::vector<boost::shared_ptr<lyx::LyXLayout>,
std::allocator<boost::shared_ptr<lyx::LyXLayout> > > >, __gnu_
cxx::__normal_iterator<boost::shared_ptr<lyx::LyXLayout> const*,
std::vector<boost::shared_ptr<lyx::LyXLayo
ut>, std::allocator<boost::shared_ptr<lyx::LyXLayout> > > >,
lyx::(anonymous namespace)::LayoutNamesEqual,
std::random_access_iterator_tag)