Skip to content

Instantly share code, notes, and snippets.

View NL66278's full-sized avatar

Ronald Portier NL66278

View GitHub Profile
@NL66278
NL66278 / profile_view_load
Created June 30, 2016 09:13 — forked from hbrunn/profile_view_load
profile_view_load
#!/usr/bin/env python2
from argparse import ArgumentParser
parser = ArgumentParser(
description='Profile loading a model\'s data for a specific view in order '
'to find bottlenecks')
parser.add_argument('odoo_basedir')
parser.add_argument('odoo_cfg')
parser.add_argument('odoo_db')