def send_request():
    'Send a profile request to the daemon.'
    parser = _common_args()
    parser.add_argument('--identifier', required=True, help='The unique message identifier.')
    parser.add_argument('--setup', default='pass', help='Any setup code if needed for the profile.')
    parser.add_argument('--code', required=True, help='The code to profile.')
    (args, _) = parser.parse_known_args()
    cfg = confpy.api.parse_options(files=(args.config,), env_prefix='PYPERF')
    cfg.transport.source().send(messages.ProfileRequest(identifier=args.identifier, setup=args.setup, code=args.code))
Send a profile request to the daemon.
def send_request():
    
    parser = _common_args()
    parser.add_argument('--identifier', required=True, help='The unique message identifier.')
    parser.add_argument('--setup', default='pass', help='Any setup code if needed for the profile.')
    parser.add_argument('--code', required=True, help='The code to profile.')
    (args, _) = parser.parse_known_args()
    cfg = confpy.api.parse_options(files=(args.config,), env_prefix='PYPERF')
    cfg.transport.source().send(messages.ProfileRequest(identifier=args.identifier, setup=args.setup, code=args.code))